Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
JupyterSetup/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
66 lines (48 sloc)
1.12 KB
This file contains 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
### On compute server (e.g. elcattivo) | |
If you used and customized jupyter (notebook/lab before) save your current enviornment first: | |
`mv ~/.jupyter ~/.jupyter.v0`. | |
Then simply type the following | |
``` | |
tmux new | |
jupyter-lab --no-browser --port=NNNNN --ip=\* | |
``` | |
### On your local machine at home | |
generate a tunnel through ssh: | |
``` | |
ssh -L 8888:elcattivo:NNNNN -l user -J geniux.molgen.mpg.de elcattivo | |
``` | |
monitor the machine using | |
``` | |
htop | |
htop -u $USER | |
``` | |
and point your local browser (firefox) to `localhost:8888`. | |
### to install the R kernel | |
run this in an R session: | |
``` | |
install.packages("devtools") | |
devtools::install_github("IRkernel/IRkernel") | |
IRkernel::installspec() | |
``` | |
### for more customization | |
run | |
``` | |
jupyter-lab --generate-config | |
``` | |
and edit the generated config file. | |
### ssh config | |
configure ssh with your own `.ssh/config` file: | |
``` | |
Host tunnel | |
HostName elcattivo | |
User UUUUUUUU | |
ProxyJump geniux.molgen.mpg.de | |
LocalForward 8888 elcattivo:NNNNN | |
``` | |
then it suffices to run `ssh tunnel`. | |
### htop config | |
copy the in this dir: | |
``` | |
mkdir -p ~/.config/htop | |
cp htoprc ~/.config/htop/ | |
``` |