Jupyter supports running with multiple kernels. Unfortunately, adding a virtual environment to Jupyter is not easy. Pycus tries to take the pain out of it, making it painless to add environments.
pycus in the same environment as Jupyter:
$ pip install pycus
This will add a
pycus subcommand to Jupyter.
$ jupyter pycus add [--environment <ENVIRONMENT>]
will add the environment.
ENVIRONMENT can be:
- A full path to a virtual environment
- The name of a
- Empty, in which case it will be equivalent to the
virtualenvwrapperenvironment with the same name as the current working directory’s base name. This matches the behavior of
After adding the environment, refresh your JupyterLab browser window, and you should see the new environment as an option in the launcher window.