How to install jupyter notebook on Ubuntu 16.04
@kon_yu
Posted on May 25, 2020
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.
http://localhost:8888/tree
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)
df.
Posted on May 25, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.