Jupyter is a kind of acronym to mean Julia, Python, and R. Jupyter runs code in many programming languages and Python 3.3 or greater, or Python 2.7 need for installing the Jupyter Notebook. We can install Jupyter with PIP but using the Anaconda distribution to install Python and Jupyter is what is officially recommended. This article is how to install Jupyter Notebook tutorial as part 1 of the series. If you are not used with Anaconda, you need read our previous guide on how to install Anaconda on Ubuntu 16.04 LTS.
If you are Windows 10 user, then follow our Install Python, pip on Windows 10 From Bash guide.
Jupyter Notebook Tutorial
For Anaconda, the command to install at present is :
conda install -c anaconda jupyter
We can easily install with PIP as alternative to Anaconda :
# python 3
pip3 install --upgrade pip
pip3 install jupyter
pip install jupyter
As for MacOSX, Pip is a package manager, virtualenv is an environment manager whereas Conda is both. It is practical to avoid Anaconda with Homebrew. For Mac, we often need to add
sudo -H to work with Python. If you run :
ls -al /usr/local/lib/ | grep "python"
You’ll get all the directories which will indicate the all possible versions of Python installed on your machine :
drwxr-xr-x 3 abhishekghosh admin 102 Nov 11 2014 python2.7
drwxr-xr-x 3 abhishekghosh admin 102 Nov 11 2014 python3.3
drwxr-xr-x 3 abhishekghosh admin 102 May 21 2015 python3.4
You can update all the installed packages :
sudo -H pip freeze --local | grep -v '^-e' | cut -d = -f 1 | xargs -n1 sudo -H pip install -U
Actually for Mac OS X you are installing Jupyter Notebook for Python 3 with this command :
sudo -H pip3 install jupyter
Python is fucking complicated on Mac and NEVER uninstall any version without asking someone reliable on sites like StackExchange or Apple Community. There are hard coded reference of Python package with version number in Mac OS X binary.
Obviously the thing will get installed automatically, there is no big manual work behind it. To open :
Then go to :
Essentially it will open a tree, asking initially for a token which will be available on CLI :
How To Jupyter Notebook Tutorial For Ubuntu 16.04 LTS or CentOS Server
Similar. For example, for Python 2.7 and Ubuntu 16.04 LTS :
apt-get -y install python2.7
apt-get -y install python-pip
apt-get -y install python-dev
apt-get -y install ipython ipython-notebook
pip install --upgrade pip
pip install jupyter
# jupyter notebook
jupyter notebook --ip='*'
jupyter notebook --ip='*' we are forcing to listen on all interfaces.
Follow the Author of this article :