ryantam626 / jupyterlab_code_formatter

A JupyterLab plugin to facilitate invocation of code formatters.
MIT License
822 stars 52 forks source link

Metadata.toJson is not a function : Unable to format notebook #314

Closed aflip closed 1 year ago

aflip commented 1 year ago

On clicking the code format button, a pop up appears with the following message:

Jupyterlab Code Formatter Error
this.notebookTracker.currentWidget.content.model.metadata.toJSON is not a function

verion: 2.0.0--rc.1 is what shows up on jupyter but pip says the version installed is 2.0.0. I have uninstalled and installed via pip multiple times

image

jupytelab version 4.0.0 jupyter 1.0.0
jupyter-lsp 2.1.0 jupyter_server 2.5.0

ryantam626 commented 1 year ago

Hmm odd, could you retry with 2.2.1 pelase? I feel like this is due to the labextension being out of sync which is my fault in release process.

aflip commented 1 year ago

Upgrade to 2.2.1 has fixed the issue. Thank you!

ryantam626 commented 1 year ago

Wonderful!