Make your JupyterLab awesome with Code Completion, Code Typeahead, Font Changes for Code/UI/Output, Faster Autosave, Black Autoformatting, Ruff Lint Suggestions, Rich Pretty Printed REPL Outputs, Darcula Theme, Autoversion of files, Pandas Lux Visualization, Javascript Kernel and more.
- Download the zip file of this gist. Unzip the zip file to a directory and give execution rights to the .sh files using
chmod +x *.sh
- Ensure you are running on a mac and have homebrew installed
- Ensure you have python(3.9, 3.10, 3.11) installed and is available in the default path. Otherwise, install the versions you want, using
brew install [email protected]
orbrew install [email protected]
orbrew install [email protected]
Run ./jupyterlab_install.sh
and pick the version of python you want. Enter 3.9, or 3.10 or 3.11. You can just hit enter to pick the default, which is Python 3.11
Rest is fairly automated. There are some suggested fonts and customizations. I recommend you go thru them, it will make your Jupyter experience good. You will now have a virtual environment with the version of Python you want and JupyterLab will be installed in it.
Run ./jupyterlab_run.sh
to start JupyterLab with the Python version you want. Assuming, you have installed the version in the first place using the above script. Enter 3.9, or 3.10 or 3.11. You can just hit enter to pick the default, which is Python 3.11
Run ./jupyterlab_update.sh
to update JupyterLab and all its dependent libraries to the latest version. Enter 3.9, or 3.10 or 3.11. You can just hit enter to pick the default, which is Python 3.11
Warning: I use pip-tools
to ensure there is no version mismatch. But pip-tools
will remove any manually installed libraries. This may be good or bad depending on your case. If you want to keep your JuputerLab setup uncluttered and clean without old dangling unused libraries like pytorch
that take up a lot of space, this may be the way to do it. Later, when you need to use earlier notebooks, then just %pip install
the required libraries in the notebook at that time.
Font MonoLisa is a paid font, that I use and will recommend. I am also thinking of Gintronic but I am wondering if the cost(150 Euros) is justified. But IMHO, custom Fonts make a lot of difference if you are spending a lot of time infront of code and coding is your profession. Get the best tools for your job.
My usual coding font setup is at present like this (unfortunately none of them are OSS):
- Code Font - Monolisa, Size(13 or 15 pt, depending on screen size), Line Height(1.618), Ligatures(Enabled)
- IDE UI Font - SF Mono, Size(13), Line Height(1.4), Ligatures(Disabled)
- Logs/Other Content/Execution Results - Input Mono, Size(13), Line Height(1.0), Ligatures(Disabled)