Skip to content

Instantly share code, notes, and snippets.

@johnsolk
Last active July 24, 2018 23:50
Show Gist options
  • Save johnsolk/057e06708ac20767b4bfd5a5dc8c4021 to your computer and use it in GitHub Desktop.
Save johnsolk/057e06708ac20767b4bfd5a5dc8c4021 to your computer and use it in GitHub Desktop.
# 10/19/2017, with help from Luiz Irber
# ssh ljcohen@farm.cse.ucdavis.edu
# start interactive job, get assigned a designated compute node
# srun -p high -t 24:00:00 --mem=20000 --pty bash
# on the farm cluster
# jupyter notebook is installed in anaconda, in home dir
# activate virtualenv
source ~/anaconda2/envs/py3.dammit/bin/activate
# change environment variable to change where tmp files are stored
export XDG_RUNTIME_DIR=/home/ljcohen/tmp
# change to dir with .ipynb
cd /home/ljcohen/osmotic/DE_analysis_by_species
# start jupyter, specify this ip and arbitrary port
jupyter notebook --ip=127.0.0.1 --port 8654
@johnsolk
Copy link
Author

Then on local computer:

ssh -t -L 8654:localhost:8654 ljcohen@farm.cse.ucdavis.edu "ssh -L 8654:localhost:8654 c11-74"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment