Nat TaylorBlog, AI, Product Management & Tinkering

Jupyter Notebook Virtual Environment

Published on .

It is simple as the following to use a virtual environment for a Jupyter Notebook

python -m venv myname
source myname/bin/activate
(myname) python -m ipykernel_launcher install --user --name=myname
(myname) jupyter kernelspec list

I have grossly polluted my system’s global python installation with tons of packages, which makes writing shareable Notebooks difficult since pip -freeze so this is a better approach.

Post Navigation

«
»