dnanhkhoa / nb_black

A simple extension for Jupyter Notebook and Jupyter Lab to beautify Python code automatically using black.
MIT License
367 stars 41 forks source link

Is it possible to use Black / nb_black when editing python files in JupyterLab? eom #37

Closed jgunstone closed 11 months ago

ichbinallen commented 2 years ago

nb_black doesn't seem to work in jupyter-lab. However, %load_ext lab_black worked for me.

jgunstone commented 2 years ago

hi there - yes - %load_ext lab_black works well for editing Notebooks. i was wondering if it was possible to enable it when editing .py files in jupyterlab such that black is run on-save.

cheers

jgunstone commented 11 months ago

it works in cells so I close