Running Jupyter notebook on Google cloud
Connect using SSH and execute Following Commands.
make sure you use static IP
sudo apt-get update
sudo apt-get install -y xrdp
sudo apt-get install -y xfce4
sudo service xrdp restart
wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
bash Anaconda3–4.2.0-Linux-x86_64.sh
export PATH=/home/<user_directory>/anaconda3/bin:$PATH
jupyter notebook --generate-config
vi ~/.jupyter/jupyter_notebook_config.py
Press “i” to insert and add the following lines in the configuration file:
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.password='nm'
c.NotebookApp.token=''
Once you are done with making changes, press Esc and type “:wq” to save and exit from the file.
Now you can run Jupyter notebook
make sure you use static IP
sudo apt-get update
sudo apt-get install -y xrdp
sudo apt-get install -y xfce4
sudo service xrdp restart
wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
bash Anaconda3–4.2.0-Linux-x86_64.sh
export PATH=/home/<user_directory>/anaconda3/bin:$PATH
jupyter notebook --generate-config
vi ~/.jupyter/jupyter_notebook_config.py
Press “i” to insert and add the following lines in the configuration file:
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.password='nm'
c.NotebookApp.token=''
Once you are done with making changes, press Esc and type “:wq” to save and exit from the file.
Now you can run Jupyter notebook
Now, I would suggest setting password for jupyter notebook, so that you won’t have to give a token, again and again, to open Jupiter notebook later. To set password use:
jupyter notebook password
Comments
Post a Comment