[Cloud102] # 1 Let's get started with Python (Part 3 Jupyter Notebook Construction GCP Cloud Shell Edition)

AGENDA 0. Introduction

  1. Cloud Shell Web Preview
  2. Installation and startup confirmation of jupyter notebook

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

1. Cloud Shell Web Preview

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

050.JPG

· Open 8080 in Web Preview. 051.JPG

・ It worked! 052.JPG

2.Jupyter notebook installation and startup confirmation

-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

055.JPG

・ Check the operation with Web Preview 053.JPG

It's easy: smile:

Recommended Posts

[Cloud102] # 1 Let's get started with Python (Part 3 Jupyter Notebook Construction GCP Cloud Shell Edition)
[Cloud102] # 1 Let's get started with Python (Part 2 Jupyter Notebook Construction AWS Edition)
[Cloud102] # 1 Get Started with Python (Part 1 Python First Steps)
Get started with Python! ~ ① Environment construction ~
Get Started with TopCoder in Python (2020 Edition)
Let's get along with Python # 0 (Environment construction)
[Blender x Python] Let's get started with Blender Python !!
Get started Jupyter Notebook
Virtual environment construction with Docker + Flask (Python) + Jupyter notebook
Easy Machine Learning with AutoAI (Part 4) Jupyter Notebook Edition
Get started with Python! ~ ② Grammar ~
Let's get started with Python ~ Building an environment on Windows 10 ~
Link to get started with python
How to get started with Python
Get started with Python in Blender
[GCP] Operate Google Cloud Storage with Python
Get started with Python in 30 minutes! Development environment construction & learn basic grammar
Linking python and JavaScript with jupyter notebook
How Python beginners get started with Python with Progete
Analytical environment construction with Docker (jupyter notebook + PostgreSQL)
Get started with Python on macOS Big Sur
A layman wants to get started with Python
❤️ Bloggers ❤️ "Beloved BI" ❤️ Let's get started ❤️ (For those who can make charts with Python)
[GCP] [Python] Deploy API serverless with Google Cloud Functions!
I tried to get started with blender python script_Part 01
Data analysis environment construction with Python (IPython notebook + Pandas)
I tried to get started with blender python script_Part 02
Web application made with Python3.4 + Django (Part.1 Environment construction)
Django 1.11 started with Python3.6
1.1 Getting Started with Python
Getting Started with Python
3 Jupyter notebook (Python) tricks
Get started with MicroPython
Get date with python
Get started with Mezzanine
Getting Started with Python
[Cloud103] # 3 Jupyter Notebook again
Let's run jupyter natively supported by VS Code with python3.8
Minimum knowledge to get started with the Python logging module