Jupyter Launcher

The Jupyter launcher provides a simple interface to start Jupyter Notebook servers on the DTU HPC cluster.

Getting started

To start the launcher, go to Tools and select Jupyter launcher. You need to be logged in to access the launcher, as it will submit a job to the DTU HPC to start the server.

Figure 1: Location of Jupyter Launcher from home page.

Here you'll see the interface with the basic options that are needed for the server:

Figure 2: GIF displaying default interface of Jupyter Launcher with interaction.

Once you've selected your options, click Launch Jupyter Server to submit the job to the cluster. This process typically takes around 30 seconds, provided the queue isn't too busy. If it takes longer than one minute, try refreshing the page and submitting the request again. If the issue persists, please contact us for assistance.

When the server is ready, a button labeled Open Jupyter Server will appear:

Figure 3: Image of buttons after launch of Jupyter Server.

Click this button to open the Jupyter interface in a new tab. If you need a server with different configurations, change your configurations and then press the Re-launch Jupyter Server button. Note, that only one instance of the Jupyter server can run at a time and the old server will be terminated by re-launching.

If you accidentally close the tab with the Jupyter session along with the launcher, you can reopen the session by clicking the button Open active Jupyter Notebook server on either the Jupyter launcher page or the HPC Cluster page:

Figure 4: Image of the 'Open active Jupyter Notebook server' from the HPC page.

Finishing your session

When you are finished with your Jupyter server, the session can be killed in one of two ways:

1) In the Jupyter Notebook file directory interface, select File -> Shut down

Figure 5: Image of File options in the Jupyter Notebook session, displaying the 'Shut Down' button.

2) On the QIM platform, select HPC cluster after pressing your profile image in the top right corner. Under the header 'Your jobs' you can select "Kill job job-number".

Figure 6: Image of the 'Kill job' button on the HPC page.

Detailed configuration

To access more options regarding the Jupyter Server, press the checkmark Show detailed configuration:

Figure 7: Image of detailed configuration of the Jupyter Launcher.

Logs

The logs provide detailed information that is updated throughout the session. Here, you'll find additional information about the job script, requested resources, and the node where the server is running. If you're experiencing connection issues, check the logs for useful debugging information that might help resolve the problem.

Figure 8: GIF of logs being printed after launch of Jupyter Server.

Loading configuration from the URL

When starting a Jupyter Notebook server with a detailed configuration, sometimes many small changes are needed. In order to save time when using a similar configuration multiple times, it's possible to load the configuration using the URL. To do this, a prefix must be added when connecting to the Jupyter Launcher.

The usual URL for the Jupyter Launcher is https://platform.qim.dk/tools/jupyter-launcher.

If you want to preload a configuration, add ? to indicate that the following piece of the URL are configuration arguments and follow that with the specific configuration you wish to preload. An example could be:
https://platform.qim.dk/tools/jupyter-launcher?cpus=4.
This will preload the Jupyter Launcher with the selection of 4 CPUs. When more configurations are needed, add & between following arguments to separate them. For instance:
https://platform.qim.dk/tools/jupyter-launcher?cpus=4&mem=32
will configure a launcher with 4 CPUs and 32 GB memory.

Figure 9: GIF of custom configuration updating after the Jupyter Launcher loads.

All the arguments are as follows:

Please note, that either a default QIM environment should be specified or a custom environment (or neither, resulting in the qim3d environment). Specifying both will result in errors during launch of the Jupyter Server. This includes all specifications of the custom environment.

Below some examples of custom URLs are shown:

For convenience, it can be an advantage to save the link - e.g. in a bookmark - for future use.