Skip to main content

Create a Python virtual environment with Jupyter

·

Here is a recipe for a running Jupyter in a Python virtual environment.

Prerequisites:

Create a project:

uv init myjupyter
cd myjupyter
uv add ipywidgets jupyterlab pandas seaborn

Update packages to the latest versions:

uv lock --upgrade
uv sync

Launch jupyter:

uv run jupyter lab

There are other ways to use Jupyter with uv.