AGENDA 0. Introduction
(1) Preface -This content is Part 3 of "[Cloud102] # 1 Let's get started with Python" Jupyter Notebook construction GCP Cloud Shell edition. Click here for Part 1: http://qiita.com/nagahisa/items/f378ff23d93119cb3c60 ・ With GCP hands-on, I really like Cloud Shell, so I will make Jupyter Notebook available in Cloud Shell.
(2) Original information Since QIITA has content to put Jupyter on Ubuntu, I will change it to the GCP Cloud Shell version and use it. Jupyter begins http://qiita.com/taka4sato/items/2c3397ff34c440044978
If you can install jupyter notebook on Cloud Shell, how do you access http? I feel that, but there is a function called Web Preview. Let's check with SimpleHTTPServer whether it can be used properly.
-Start SimpleHTTPServer with 8080 port specified on the black screen of Cloud Shell.
python -m SimpleHTTPServer
· Open 8080 in Web Preview.
・ It worked!
-Install the following with reference to the original information.
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y python-pip libpq-dev python-dev
sudo pip install -U pip
sudo pip install ipython[notebook]
sudo apt-get install -y libpng12-dev libjpeg8-dev libfreetype6-dev libxft-dev
sudo pip install numpy pandas matplotlib seaborn scikit-learn
-Refer to the original information, generate a configuration file and describe the following.
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8080
·start up
jupyter notebook
・ Check the operation with Web Preview
It's easy: smile:
Recommended Posts