Radiasoft Public JupyterHub
Watch this repository for changes to the public RadiaSoft Jupyter server.
Spawn Failed: There are no more servers available.
You may get this error if our cluster has too many active users:
The latest attempt to start your server has failed. There are no more servers available. Please wait a few minutes before trying again. Would you like to retry starting it?
You can also submit an Issue so that we know you are waiting for a free server.
You can create a file in
~/jupyter/bashrc, and it will be read each
time a terminal window starts. This will allow you to customize your
shell environment. It will also be read when your server starts so if
you would like a change to show up in notebooks, you will need to restart
~/jupyter/bin is automatically inserted in your
so you can create programs/scripts and
chmod +x <file> in order to make
them executable. You may need to type
hash -r after you type a new
This repo provides customizations for end-user containers started on
jupyter.radiasoft.org. This repo's
radia-run.sh is executed first
then the user's jupyter.radiasoft.org
the user to customize the output of this customization.
radia-run.sh will be executed at every container start
. ~/.bashrc git clone https://github.com/radiasoft/jupyter.radiasoft.org cd jupyter.radiasoft.org . ./radia-run.sh cd .. rm -rf jupyter.radiasoft.org
Since the script is run in a subshell, it has access to all the functions in the RadiaSoft downloader. For now, do not assume much about this context, but eventually an API will be refined.
Right now, it executes in the
master branch. We'll eventually
install on the channel, but you can expect that your personal
juypter.radiasoft.org repo will always install off of
Avoid hardwiring paths. Use
~ in scripts. Don't assume
$USER, because it may change.
You can assume
~/jupyter is where the notebooks are stored and
where the terminal boots from. This directory persists across
container restarts so you should be careful not to stomp
Importing the Warp code in an IPython Notebook
Simply trying 'import warp' or 'from warp import *' will generate errors. Instead, use the following:
import sys del sys.argv[1:] from warp import *
European XFEL: the WaveProperGator (WPG) notebooks for running SRW
Point your browser to the RadiaSoft JupyterHub server
Login with your GitHub credentials.
Click the "Terminal" button in the "Launcher" tab.
In the new terminal window, type the following command:
jupyter$ git clone https://github.com/samoylv/WPG.git ./WPG
- Browse to a notebook, by doing (for example) the following:
Double click "WPG"
Double click "samples"
Double click "Tutorials"
Double click "Tutorial_case_1.ipynb"
- In the "Select Kernel" popup window, you can keep the default choice of "Python 2" by clicking the "SELECT" button.