We are going to use the open-source Anaconda ecosystem for working with Python and Jupyter Notebook.
Thus, go to Anaconda Individual Edition page, and search for the Anaconda Installers section. Once there, choose the installer according to your operating system and machine specifications.
These are the most common selections:
Download it and perform the installation process.
Click Start, search, or select Anaconda Prompt from the menu:
Open it, and then type conda --version
.
You should see the anaconda version installed appear. For example:
You can also type conda info
to see more information, including the Python version installed.
Open a terminal and type either conda --version
or conda info
.
For both Windows and Mac, you should also be able to open the Anaconda Navigator panel, from your system search bar:
After completing the installation, close your terminal and open a new one. Then, you should be able to init Jupyter Notebook by typing jupyter notebook
. If you see something like this, everything is OK:
Otherwise, if you get the message “jupyter: command not found”: run export PATH=$PATH:/root/anaconda3/bin
(you should verify where you actually installed anaconda, however, this is the default path). Then, type again jupyter notebook
.
If at this point you get the message "Running as root is not recommended. Use --allow-root to bypass.", execute jupyter notebook --allow-root
.
Some material presented here was extracted and adapted from: