Jupyter Notebook Server

Instructions for Using Julia via the Jupyter Notebook server in the ICDS ACI Portal

  1. Setup Julia kernel to work with ICDS-ACI (only needs to be done once per user)
  2. Start a Jupyter Notebook session on ACI
  3. Clone your Github Repository on ACI (only need to do once per repository)

Setup Julia kernel to work with ACI’s Jupyter notebook server

module load python/3.6.3-anaconda5.0.1
cd work
mkdir julia_depot
# Setup a Julia package depot in your ACI work directory
cd julia_depot
export JULIA_DEPOT_PATH=$PWD
echo "export JULIA_DEPOT_PATH=$PWD" >> ~/.bashrc
cd ..

# Install Julia in your work directory
mkdir julia_install
cd julia_install/
wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.2-linux-x86_64.tar.gz
tar -xf julia-1.0.2-linux-x86_64.tar.gz
cd julia-1.0.2

# Setup paths so Julia can be found
export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$PWD/lib/julia:$LD_LIBRARY_PATH
echo "export PATH=$PWD/bin:$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=$PWD/lib/julia:$LD_LIBRARY_PATH" >> ~/.bashrc

# Setup IJulia and a few packages that we'll be using lots
julia -e 'using Pkg; Pkg.add(["IJulia","Weave","NBInclude"])'

# Create ssh-keys
ssh-keygen -t rsa -b 4096  # follow prompts, default location should be ok
cat ~/.ssh/id_rsa.pub
git config --global user.email "nobody@nowhere.org"
git config --global user.name "Your Github Id"

Start a Jupyter notebook session on ACI

Each time in the future you want to start a Jupyter notebook session on ICDS-ACI


Clone your github repository to begin a new project

git clone REPO_URL  # where REPO_URL is what you'll paste from the clipboard
cd REPO_DIR
julia -e 'using Pkg; Pkg.activate("."); Pkg.instantiate(); '