Skip to content

Installing and setting up Jupyter Notebook

Checking your Python install

You might want to start by checking that your shared Python environment is active. Run which python and python --version to make sure it looks like the "right" Python is being used.

If you do not see (lede) at the beginning of your command line, activate the environment:

source ~/.venvs/lede/bin/activate
call "%USERPROFILE%\.venvs\lede\Scripts\activate.bat"

Does python --version look good? Does which python mention .venvs and lede?

If not, you'll want to check the Python installation guide.

Install Jupyter

You can install Jupyter Notebook with the following command:

python -m pip install jupyterlab notebook ipykernel

It might be quick, it might be slow, but hopefully it eventually finishes without any errors! Don't worry if it yells WARN about pip versions or something, it's no big deal unless it actually says ERR or ERROR.

Confirm it worked

Run the following command to try to check Jupyter's version number.

python -m jupyter --version

If it says "command not found," it didn't work. If it says anything else, you're okay.

Setting your Python as the Jupyter Python

When you have multiple versions of Python on your computer, it turns out that sometimes the command line Python and the Jupyter Python don't match up.

python -m ipykernel install --user --name lede --display-name "Python (lede)"

Confirm it worked

Run the following command to check the list of Pythons attached to Jupyter.

python -m jupyter kernelspec list --json

Skim through the awful, awful bushel of text it presents to you. Do you see .venvs and lede somewhere in it? If so, it worked.