- Clone the repository:
git clone git@github.com:e-cal/nn-from-scratch.git
- (Optional) Create a virtual environment
See the next section for creating a notebook kernel in the virtual environment.
venv "$VIRTUALENV_HOME/ENVNAME" source "$VIRTUALENV_HOME/ENVNAME/bin/activate"
- Install the requirements:
pip install -r requirements.txt
- Launch the notebook server:
jupyter notebook
- Select the correct kernel to use for the notebook: Kernel > Change kernel > [select the proper kernel]
If you install the required packages to a virtual environment, you can add the
environment to Jupyter with this command: python3 -m ipykernel install --name=ENVNAME
(make sure to replace ENVNAME. You may also need to add the --user
flag if you get permission errors.)
Should print something like:
Installed kernelspec ENVNAME in /home/USER/.local/share/jupyter/kernels/ENVNAME
If there is any difficulty getting a kernel set up with the required packages installed, you can install the requirements outside of a virtual environment and use the default kernel.