Setup Python 3 Environment on Controls Network

source use_python3.sh

List of packages in the above environment: https://github.com/slaclab/lcls-python3-envs/blob/main/python3_rhel7_env.yml


EPICS in python: https://pyepics.github.io/pyepics/

The quickstart is a good place to start.


Jupyter on the control system

This section shows how to run a jupyter notebook server on the control system, but access the web interface from your local browser. It is surprisingly fast/snappy.

Note that <port> can be anything, but 8080 works. You can also use server facet-srv01, facet-srv02 or facet-srv20. If you want to access DAQ data you must use facet-srv20. From Auralee, but posted without permission, so she can't help you if it doesn't work! Brendan has used it for weeks, so it does work.

ssh <user>@centos7.slac.stanford.edu -L <port>:localhost:<port> -X

ssh mcclogin -L <port>:localhost:<port> -X 

ssh fphysics@facet-srv20 -L <port>:localhost:<port> -X 

source <env path>

jupyter lab --no-browser --port <port>

copy paste the url it spits out in terminal into my browser on laptop


An abomination which does the same thing but with a single command from your local machine; good idea to alias this command!

ssh <user>@centos7.slac.stanford.edu -L <port>:localhost:<port> 'ssh mcclogin -L <port>:localhost:<port> 'ssh fphysics@facet-srv20 -L <port>:localhost:<port> 'jupyter-lab --no-browser --port <port>'''
  • No labels