JupyterHub spawns, manages multiple instances of the single-user Jupyter notebook server. The Jupyter notebook server is run on the interactive psana nodes to allow direct access to LCLS data.
The Jupyter notebooks are running python kernels from the new Conda Release System. It is possible to run both Python 2 and Python 3 kernel, but only Python 2 provides the LCLS psana analysis package.
Users can login with their unix account to start a new jupyter notebook server.
NOTE: The jupyterhub web interface by default will only allow you to navigate to subdirectories of your home directory (see https://github.com/jupyter/notebook/issues/2032 for the reasoning behind this decision). If you want to navigate to another directory, run a script like this to make a softlink in your home directory that you can click on:
import os
os.symlink("/reg/d/psdm/sxr/sxrlr4016","sxrlr4016")
JupyterHub spawns, manages multiple instances of the single-user Jupyter notebook server. The Jupyter notebook server is run on the interactive psana nodes to allow direct access to LCLS data.
The Jupyter notebooks are running python kernels from the new Conda Release System. It is possible to run both Python 2 and Python 3 kernel, but only Python 2 provides the LCLS psana analysis package.
JupyterHub is a web service and is available at:
https://pswww.slac.stanford.edu/jupyterhub/hub/home
Users can login with their unix account to start a new jupyter notebook server.
NOTE: The jupyterhub web interface by default will only allow you to navigate to subdirectories of your home directory (see https://github.com/jupyter/notebook/issues/2032 for the reasoning behind this decision). If you want to navigate to another directory, run a script like this to make a softlink in your home directory that you can click on:
Managing Jupyterhub Service
JupyterHub is running on machine: psanasvc01
log file is here:
/reg/g/psdm/sw/jupyterhub/psjh/jupyterhub-slac/run.log
To start / stop / restart JupyterHub with supervisord on psanasvc01:
supervisorctl -c /reg/g/psdm/psdatmgr/bin/supervisord_psanasvc01.conf
and then type: stop jupyerhub or start jupyterhub
The code for running JupyterHub at SLAC is developed at:
https://github.com/slac-lcls/jhub