Jupyter Notebook Tutorial : Part 1

Advertisement

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.

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 :

Vim

1

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 :

Actually for Mac OS X you are installing Jupyter Notebook for Python 3 with this command :

Vim

1

sudo-Hpip3 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.

Advertisement

---

Obviously the thing will get installed automatically, there is no big manual work behind it. To open :

Vim

1

jupyter notebook

Then go to :

Vim

1

http://localhost:8888

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 :

Vim

1

2

3

4

5

6

7

8

apt-get-yinstall python2.7

apt-get-yinstall python-pip

apt-get-yinstall python-dev

apt-get-yinstall ipython ipython-notebook

pip install--upgrade pip

pip install jupyter

#jupyter notebook

jupyter notebook--ip='*'

With jupyter notebook --ip='*' we are forcing to listen on all interfaces.