JupyterLab: Run a fresh instance in 1 minute (= 3 commands)
Oct 4, 2021 14:25 ยท 149 words ยท 1 minute read
JupyterLab is a great way to interactively play around with Python, e.g. when doing data science, i.e. examining a data set. Here is my favorite way to install it. Main advantage in my opinion: This type of installation does not install JupyterLab globally, but scoped to a specific folder.
Prerequisites
- Python 3.x (is installed by default on Ubuntu/Debian and macOS)
- The awesome Poetry Python package manager. See Installation Docs. Installation is a one-line command ๐
Commands
poetry init --no-interaction
: Initialize a new empty Poetry projectpoetry add jupyterlab
: Install JupyterLab in a separate virtual environment (does not clash with your existing installed Python packages)poetry run jupyter-lab
: Run JupyterLab โ you will receive an URL under which you can visit & use the running instance.
Boom, you’re done! ๐
In the future, you can run JupyterLab from this folder by simply running the last command, poetry run jupyter-lab
. ๐
- Generating a random string on Linux & macOS
- Caddy web server: Why use it? How to use it?
- Tailwind CSS: A Primer
- Versicherungen: Learnings
- Screen Recording on macOS (without any extra tools)
- WSL2 Cheat Sheet
- Install Docker in WSL2 (Ubuntu) without Docker Desktop
- Converting a Slack message to Markdown
- VirtualBox & macOS Monterey: Fixing 'Kernel driver not installed (rc=-1908)'
- Notes on Productivity