conda install -yc conda-forge mamba
mamba create -n jupyteR -yc r -c conda-forge \
r-essentials r-base ipykernel jupyterlab r-irkernel# Install Julia and the Jupyter-Julia kernel
mkdir $HOME/bin && cd "$_"
wget https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.4-linux-x86_64.tar.gz
tar zxvf julia-1.6.4-linux-x86_64.tar.gz && rm julia-1.6.4-linux-x86_64.tar.gz
echo 'export PATH=$PATH:$HOME/bin/julia-1.6.4/bin' >> ~/.bash_profile
source $HOME/.bash_profile
julia -e 'import Pkg; Pkg.update(); Pkg.add("IJulia")'You only need to do this the first time
source activate jupyteR
jupyter lab --generate-config
jupyter lab password# Non-available ports in Hulk local address
netstat -lntu | awk 'NR>2 {print $4}' | grep -E '0.0.0.0:' | sed 's/.*://' | sort -n | uniq
# Select an available port in a range of 8800-8899
# Using a terminal multiplexer
tmux -u new -s julia
srun -J notebook -N 1 \
--ntasks-per-node=1 --pty $(which bash) -c \
"jupyter lab --ip 0.0.0.0 \
--port 8887 --no-browser \
--notebook-dir=/emc/cbmr/users/$USER/notebooks"
# Tmux dettach
# CTRL + B + D
conda deactivatehostname -IFor me, this is the local address of the server to use through ssh: 10.128.7.72. You can use 'hulk' as well.
10.128.7.72:8888/labOr:
hulk:8888/labAt the moment the previous step only works with Pulse Secure. However, you can use the Malte's solution, tunneling through Porus
ssh -o TCPKeepAlive=no \
-o ServerAliveCountMax=20 \
-o ServerAliveInterval=15 \
-N -L 8000:10.128.7.72:8888 [email protected]Or
ssh -o TCPKeepAlive=no \
-o ServerAliveCountMax=20 \
-o ServerAliveInterval=15 \
-N -L 8000:hulk:8888 [email protected]
If you don't want the local version of conda you can install your own: