jupyterlab-contrib / jupyterlab_code_formatter

A JupyterLab plugin to facilitate invocation of code formatters.
https://jupyterlab-code-formatter.readthedocs.io/
MIT License
853 stars 55 forks source link

Jupyter Code Formatter Line Length Error #326

Open UobinnaO opened 1 year ago

UobinnaO commented 1 year ago

Not sure what I did wrong here. My Python version is 3.11.5/Conda version 23.7.4, finished pip installing the formatter and the black isort then tried to format my code.

Thanks!

Jupyterlab Line Length Error

pip installation for formatter

enarroied commented 1 year ago

I had the exact same problem, downgrading black to 23.9.1 (the current version is 23.10.1) fixed it:

pip install --force-reinstall -v "black==23.9.1"

I hope it helps!

tvogel commented 11 months ago

This happens straight with a fresh anaconda install plus installing this package with the anaconda-navigator environment manager. The installed black package is marked as 23.3.0 in the environment manager but for strange reasons !pip show black lists it as version 0.0 (when run from the Jupyter Lab console).