Skip to content

Instantly share code, notes, and snippets.

@vr-greycube
Last active August 8, 2023 03:14
Show Gist options
  • Save vr-greycube/d64ef5aa48e8a074a18468779a4e9b1b to your computer and use it in GitHub Desktop.
Save vr-greycube/d64ef5aa48e8a074a18468779a4e9b1b to your computer and use it in GitHub Desktop.
frappe python survival guide

Running Jupyter Notebook on a remote server

https://docs.anaconda.com/anaconda/user-guide/tasks/remote-jupyter-notebook/

On server

jupyter notebook --no-browser --port=8080

On local machine

# Replace <PORT> with the port number you selected in the above step
# Replace <REMOTE_USER> with the remote server username
# Replace <REMOTE_HOST> with your remote server address
ssh -L 8080:localhost:<PORT> <REMOTE_USER>@<REMOTE_HOST>

To run notebook in local

  • switch to frappe-bench/sites and run ../env/bin jupyter notebook
  • if you get an error for log directory, while in sites run mkdir -p ./jupyter_notebooks/site_name/logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment