Skip to content

Instantly share code, notes, and snippets.

@sjvrijn
Created January 22, 2021 14:12
Show Gist options
  • Save sjvrijn/6be216bf3a76f49b83d5a71f4fa975ad to your computer and use it in GitHub Desktop.
Save sjvrijn/6be216bf3a76f49b83d5a71f4fa975ad to your computer and use it in GitHub Desktop.
Launch a jupyter lab instance on a remote machine while accessing locally with 'remotenotebook jupyter-remote':
# Add this function in your ~/.bash_aliases file, which takes the desired remote machine as argument:
remotenotebook() { ssh -4 -L 8891:localhost:8891 $1 -t "~/.ipynb"; }
# Create this .ipynb bash script on the remote machine:
cd /path/to/working/directory/
/hardcoded/path/to/jupyter-lab --no-browser --port=8891 --NotebookApp.iopub_data_rate_limit=10000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment