Collection of various Jupyter notebooks. This repo also defines my Jupyter environment, notebook flow and requirements handling...
To initialize my jupyter environment on a new (Arch Linux) system, the following needs to be done:
- Create
notebooks
virtual environment and install requirements
> mkvirtualenv notebooks
(notebooks) > pip install -r requirements.txt
To create a new notebook:
- Create new virtual environment and a new kernel for the notebook
> mkvirtualenv notebookXY
(notebookXY) > pip install ipykernel
(notebookXY) > python -m ipykernel install --user --name=notebookXY --display-name "Python (notebookXY)"
- Create requirements file
requirements/notebookXY.txt
- Install requirements
> workon notebookXY
(notebookXY) > pip install -r requirements/notebookXY.txt
- Make sure you select the right kernel when editing