Virtual Jupyter

Wed 24 July 2019
Jupyter and a Python (almost) (Photo credit: Wikipedia)

Following the isolation of python environements and given I use jupyter notebooks, isolating jupyter kernels inside virtualenv is a logical step.

To do so, you must install a new kernel using the ipython you installed inside your virtualenv:

  1. Create your virtualenv
  2. Install ipython inside your virtualenv (use pip)
  3. Create a new kernel
ipython kernel install --user --name="test"

3. Start your jupyter-notebook. You can now choose your new kernel (listed just below the python3 kernel). You can also change your kernel on an existing notebook.

Kernel selection menu (last item)

Related articles (or not):

Category: how to Tagged: python tools code