Skip to content

Instantly share code, notes, and snippets.

@jackz3
Forked from buo/init_jupyter.sh
Last active December 14, 2017 02:08
Show Gist options
  • Save jackz3/5a378f555ac4f9262b4876346344337c to your computer and use it in GitHub Desktop.
Save jackz3/5a378f555ac4f9262b4876346344337c to your computer and use it in GitHub Desktop.
A script that automatically configures Jupyter on Cloud9
#!/bin/bash
sudo pip install --grade pip
sudo pip install jupyter
jupyter notebook --generate-config
sed -i "s/#c.NotebookApp.port = 8888/c.NotebookApp.port = $PORT/" ~/.jupyter/jupyter_notebook_config.py
sed -i "s/#c.NotebookApp.ip = 'localhost'/c.NotebookApp.ip = '0.0.0.0'/" ~/.jupyter/jupyter_notebook_config.py
sed -i "s/#c.NotebookApp.open_browser = True/c.NotebookApp.open_browser = False/" ~/.jupyter/jupyter_notebook_config.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment