- Uniting Virtualenv and Jupyter Notebook
- Create a
virtualenv
and activate it - Add
virtualenv
to Jupyter - Verify by opening Jupyter notebook
Uniting Virtualenv and Jupyter Notebook
Both Virtualenv and Jupyter Notebook are commonly used in developing and experimenting with various projects and research activities. Jupyter Notebook has good features to document as you explore, while Virtualenv provides you isolation of python runtime based on your project/ research needs. This articles demonstrates the integration of Jupyter Notebook with Virutalenv for Python Development.
Create a virtualenv
and activate it
1
2
3
virtualenv fwbin
source fwbin/bin/activate
Add virtualenv
to Jupyter
1
python -m ipykernel install --user --name=fwbin
In case you get an error mentioning ipykernel module does not exists, use the following command
1
pip install ipykernel
Verify by opening Jupyter notebook
Fire the following command to start Jupyter Notebook
1
jupyter-notebook
In the New
menu you can now see the entry for fwbin
virtualenv