Jupyter Lab

1 min

I can only write code in Jupyter for now, but my original notebook kept getting bigger and slower because I kept writing multi-megabyte files, so I switched to Lab.

Here are some configurations I set up while using it.

Extension

(Starting with confusion - I’m actually following a Japanese blog to set this up, couldn’t find Chinese resources)

You need to install NodeJS to install extensions (why?)

conda install -c conda-forge nodejs

Then you can use List to see what’s installed:

jupyter labextension list

I mainly installed a few from Awesome Jupyter, basically to make it similar to the original Notebook, like lsp, toc, drawio, latex, variableinspector. Others not in that list include jupyterlab-execute-time and jupyterlab-kite.

Finally run this:

jupyter lab build
jupyter labextension enable all

Or manually enable extensions in Lab’s settings.

One inconvenience is that the Variable inspector can’t float.

One more thing - as a casual user, I feel kite isn’t necessary, lsp is enough.

That said, I still feel notebook is more convenient.