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

Automatically detect if Lab or Notebook is running #24

Closed joachimvalente closed 4 years ago

joachimvalente commented 4 years ago

Is there any way to do that? That would avoid having to change between %load_ext lab_black and %load_ext nb_black when switching from jupyter lab to jupyter notebook.

joachimvalente commented 4 years ago

(Sorry - just saw issue #16)