Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using virtual environment with Python notebook

In order to use Jupyet Notebook/Lab with virtual environment you need to start the Jupyter within your virtual environment 

  1. Go to your virtual environment

  2. Install ipykernel : (virtualenv): "pip install ipykernel"

  3. Install a new kernel: "ipython kernel install --user --name=projectname"

  4. At this point, you can start jupyter, create a new notebook and select the kernel that lives inside your environment.

    and activate environment

  5. Run "jupyter-lab" in your virtual environment to start Jupyter Lab

See https://anbasile.github.io/programming/2017/06/25/jupyter-venv/ for more information