Launching Jupyter Notebook inside a Virtual Environment
Useful commands used for launching Jupyter Notebooks inside a Virtual Environment
The first step is creating the virtual environment that has all the packages.
$ mkdir myproject && cd myproject
$ python -m venv env
$ source venv/bin/activate
Install ipykernel
and create a new one for our virtual environment
(env) $ python -m pip install ipykernel
(env) $ ipython kernel install --user --name=<REPLACE-WITH-KERNEL-NAME>
Finally, lunch jupyter and check it was created
(env) $ jupyter notebook
In order to do the same in Julia follow these steps.
Removing Kernels
Run jupyter kernelspec list
to get the name of all your kernels.
Then simply uninstall your <KERNEL-NAME>
jupyter kernelspec uninstall <KERNEL-NAME>