Last active
December 24, 2018 19:46
-
-
Save arose13/ca8d4ebc9614c4654554c8206689335b to your computer and use it in GitHub Desktop.
Creating a Jupyter Notebook Server on Google Cloud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################################### | |
### From Google Cloud Console | |
# from the navigation menu, under the Networking > VPC Network > Firewall rules | |
click 'CREATE FIREWALL RULE' | |
set Name | |
set Targets to 'All instances in the network' | |
set source IP range to '0.0.0.0/0' | |
set protocols and port to 'Allow all' | |
click create | |
######################################################################################### | |
### From Cloud Terminal | |
# Create permenant configuation file | |
jupyter notebook --generate-config | |
# Create a password | |
jupyter notebook password | |
# Copy SHA1 password hash from the /.jupyter/jupyter_notebook_config.json! | |
# Add the following lines to the jupyter config file | |
nano ~/.jupyter/jupyter_notebook_config.py | |
### If you're lost run locate jupyter_notebook_config.py | |
# Make sure all the below is UNCOMMENTED and values set for the `jupyter_notebook_config.py` | |
c.NotebookApp.ip = '<* or `Internal IP` if you are using Google Compute Engine>' | |
c.NotebookApp.password = u'<your SHA1 hashed password from .json file>' | |
c.NotebookApp.open_browser = False | |
c.NotebookApp.port = 8888 # This can be anything and changed as you wanted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment