Start jupyter notebook on GPU server (remote server)

Overview Describes how to start jupyter notebook using AWS GPU instance.

Environment ・ Mac OS Catalina 10.15.6 ・ AWS Deep Learning AMI (Ubuntu 18.04)

Procedure

Instance creation ○ Create an EC2 instance **AMI**:AWS Deep Learning AMI (Ubuntu 18.04) ** Instance type **: GPU instance p2.xlarge ** Storage size (GiB) **: 200 The rest is the default

** → ** Instance creation failed The following error occurred

You have requested more vCPU capacity than your current vCPU limit of 4 allows for the instance bucket that the specified instance type belongs to. Please visit http://aws.amazon.com/contact-us/ec2-request to request an adjustment to this limit.

Apparently there is an instance limit. Apply to increase capacity.

○ If you use the following site, you can calculate the increased capacity and move to the application screen. https://ap-northeast-1.console.aws.amazon.com/ec2/home?region=ap-northeast-1#LimitsCalculator

  • It seems that foreign countries are available 24 hours a day, so if you set English and submit an application in English, the application will come down early.

Create an instance again.

ssh connection Enter the ssh connection command in the terminal

ssh -i <pem file address> ubuntu@Public DNS (ec2-○○○.com)



 Enter the pytorch environment
```source activate pytorch_p36```


 <h3> jupyter notebook settings </ h3>
 Set a password for jupyter notebook
```jupyter notebook password```

 The password is saved in the json file below, so copy it

#### **`less ./.jupyter/jupyter_notebook_config.json`**

Describe various settings in the * py file

vi ./.jupyter/jupyter_notebook_config.py




#### **`./.jupyter/jupyter_notebook_config.py`**

c = get_config() c.NotebookApp.ip = '0.0.0.0' c.NotebookApp.open_browser = False #Password generated by the hash function you copied earlier(sha1:###)Is described below c.NotebookApp.password = 'Copyed password' c.NotebookApp.port=8888


 Now open the jupyter notebook
```jupyter notebook```
 http: <address>: Start with 8888

 It does not start

 The reason was that the rule was not added in the security group setting when creating the instance.

 Select a security group from the left of the EC2 page
 → Select the security group you have set
 → Select an action and edit the inbound rule

 ○ Custom TCP TCP 8888
 (This time, my IP was selected as the source for both SHH and custom TCP)

 And again
```jupyter notebook```

 http: <address>: Start with 8888

 will not open...


 The cause was that the private IP was listed in the address.
 List your public IP and try again


 success



 I entered the password and was able to start the jupyter notebook without any problems.





 that's all


Recommended Posts

Start jupyter notebook on GPU server (remote server)
Build jupyter notebook on remote server (CentOS)
Run Jupyter notebook on a remote server
Enable Jupyter Notebook with conda on remote server
GPU check of PC on jupyter notebook
Remotely open Jupyter notebook launched on the server
jupyter notebook does not start on mac fish
High charts on Jupyter notebook
View PDF on Jupyter Notebook
Run Jupyter Notebook on windows
Use jupyter on AWS GPU instance
Run azure ML on jupyter notebook
Try running Jupyter Notebook on Mac
Make Jupyter Notebook a service on CentOS
Try SVM with scikit-learn on Jupyter Notebook
Clone the github repository on jupyter notebook
Display histogram / scatter plot on Jupyter Notebook
Use vim keybindings on Docker-launched Jupyter Notebook
Install matplotlib and display graph on Jupyter Notebook
Jupyter Notebook memo
[Jupyter Notebook / Lab] 3 ways to debug on Jupyter [Pdb]
Introducing Jupyter Notebook
Powerful Jupyter Notebook
I tried launching jupyter nteract on heroku server
Golang on jupyter
[Pythonocc] I tried using CAD on jupyter notebook
Simply display a line graph on Jupyter Notebook
Jupyter on AWS
Settings when using Jupyter Notebook under Proxy server
Jupyter notebook password
Jupyter Notebook memo
How to install Fast.ai on Alibaba Cloud GPU and run it on Jupyter notebook
Try Apache Spark on Jupyter Notebook (on local Docker
Easily launch jupyter notebook on AWS and access locally
Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows
Try basic operations for Pandas DataFrame on Jupyter Notebook
EC2 provisioning with Vagrant + Jupyter (IPython Notebook) on Docker
[Windows] [Python3] Install python3 and Jupyter Notebook (formerly ipython notebook) on Windows
Install django on python + anaconda and start the server
How to view progress bar on Jupyter Notebook to see progress
Hello X3DOM on Jupyter
Get started Jupyter Notebook
3 Jupyter notebook (Python) tricks
[Cloud103] # 3 Jupyter Notebook again
[Memo] Display Jupyter Notebook on PC in monospaced font (Mac)
<Python> Build a dedicated server for Jupyter Notebook data analysis
Unable to display tensorboard in jupyter notebook on docker (solved)
Write charts in real time with Matplotlib on Jupyter notebook
A very convenient way to give a presentation on Jupyter Notebook
Try clustering with a mixed Gaussian model on a Jupyter Notebook
A note when I can't open Jupyter Notebook on Windows