...
- login to open ondemand at https://s3df.slac.stanford.edu/ondemand
- click on the top menu bar and choose interactive apps → Jupyter
- Select Custom facet2 for Jupyter Image
- Select Apptainer Image impact_bmad_sim for Image
- Click use JupyterLab instead of Jupyter Notebook
- For run on cluster type select: Batch; s3df; account: FACET; Partition Milano
- Select number of hours and cores
- Configure rest of settings - *to use the FACET account you need to be added via coact; you can try using the beamphysics account if FACET doesnt work.
- Launch and connect
- The container will copy the necessary notebooks to
$HOME/impact_bmad_container_notebooks
. Click on this directory via the Jupyter UI and run the Impact / Bmad Sim.
If you want to customize the path where the notebook files are copied to from the container then:
- instead of step 4 above select custom
- select apptainer image
- paste in the code below and change NOTEBOOK_ROOT
- Set the "Commands to initiate Jupyter" to be:
(also available here)
Code Block # Set the environment variable for the Apptainer image path export APPTAINER_IMAGE_PATH=/sdf/group/facet/sanjeev/containers/impact-bmad_latest.sif export NOTEBOOK_ROOT=$HOME/impact_bmad_container_notebooks mkdir -p $HOME/impact_bmad_container_notebooks # Define the jupyter function to use Apptainer for executing Jupyter with necessary bindings and running mkdir and cp commands function jupyter() { apptainer exec -B /usr,/sdf,/fs,/sdf/scratch,/lscratch ${APPTAINER_IMAGE_PATH} bash -c " mkdir -p ${NOTEBOOK_ROOT} && cp -rn /opt/notebooks/* ${NOTEBOOK_ROOT}/"; apptainer exec -B /usr,/sdf,/fs,/sdf/scratch,/lscratch ${APPTAINER_IMAGE_PATH} jupyter $@; }
- Click use JupyterLab instead of Jupyter Notebook
- For run on cluster type select: Batch; s3df; account: FACET; Partition Milano
- Select number of hours and cores
- Configure rest of settings - *to use the FACET account you need to be added via coact; you can try using the beamphysics account if FACET doesnt work.
- Launch and connect
- The container will copy the necessary notebooks to
$HOME/impact_bmad_container_notebooks
. Click on this directory via the Jupyter UI and run the Impact / Bmad Sim. continue from step 6
Via Command Line (S3DF)
- Connect to s3df with port forwarding (juptyer notebooks will run on port 5555 and be forwarded to your local machine)
...
- Run this script which copies jupyter notebook files out of the container and starts a session
- tbd
Via Command Line (not S3DF)
...