To setup the exercise environment, choose a 3-digit number to replace the three instances of xxx below,
and execute:
# connect to LPC with a port forward to access the jupyter notebook server
ssh cmslpc-sl7.fnal.gov -L8xxx:localhost:8xxx
# create a working directory and clone the repo
mkdir -p nobackup/cmsdas2020
cd nobackup/cmsdas2020
git clone [email protected]:neumeist/CMSDAS_Muon.git
cd CMSDAS_Muon
# this script sets up the Python environment, only run once
./setup.sh
# this enables the environment, run it each login (csh users: use activate.csh)
source egammaenv/bin/activate
# this gives you permission to read CMS data via xrootd
voms-proxy-init --voms cms --valid 100:00
# in case you do not already have this in your .bashrc (or equivalent) please run
source /cvmfs/cms.cern.ch/cmsset_default.sh
jupyter notebook --no-browser --port 8xxxThere should be a link like http://localhost:8123/?token=... displayed in the output at this point, paste that into your browser.
Then open exercise.ipynb.