How to install jupyter notebook on Ubuntu 16.04

konyu profile image @kon_yu ・1 min read

The version of Python is 2.7 or so.

python --version
Python 2.7.12

Installing jupyter notebook

sudo pip install jupyter

Confirmation of jupyter notebook startup

jupyter notebook

The browser starts up and jupyter notebook opens.

How to finish.
Ctrl+C to terminate the process on the console where jupyter notebook is running

How to create a new Notebook
Press the new button at the top right of the jupyter notebook screen to select Notebook: Python 2.

To open an existing Notebook from the console

jupyter notebook FILENAME.ipynb 

When saving a Notebook
Click on the good old floppy disk icon on Notebook's screen.
To rename the file, click on "Untitled1" on the right side of the jupyter on the screen to open a dialog for renaming the file

Check if data analysis libraries numpy, scipy, scikit-learn, matplotlib, and pandas are installed.

If you're building your environment in an ansible-playbook repository, you can use
numpy, scipy, scikit-learn, and matplotlib should be installed

Check the list of installations in the pip to make sure they are

pip list

Pandas installation

 sudo pip install pandas

trying to import with jupyter notebook

If you run the following snippet in jupyter notebook and confirm that the table is displayed
I can confirm that pandas is installed.

from sklearn import datasets
import pandas as pd
from collections import OrderedDict

iris = datasets.load_iris()

df = pd.concat([pd.DataFrame(iris.data,columns=iris.feature_names),pd.DataFrame(iris.target,columns=["species"])],axis=1)

Posted on by:

konyu profile



I am a freelance software engineer, media artist, technical advisor, CTO of a freelance guild, and have a cat. Shoul you have any plan to work with me, please contact me via dev.to message!


Editor guide