A JupyterLab extension that interfaces with the Slurm Workload Manager, providing simple and intuitive controls for viewing and managing jobs on the queue.
- JupyterLab >= 1.0
- Node.js 5+
- Slurm
This extension includes both a client-side JupyterLab extension and a server-side Jupyter notebook server extension. Install these using the command line with
pip install jupyterlab_slurm
jupyter labextension install jupyterlab-slurm
If you are running Notebook 5.2 or earlier, enable the server extension by running
jupyter serverextension enable --py --sys-prefix jupyterlab_slurm
After launching JupyterLab, the extension can be found in the command palette under
the name Slurm Queue Manager
, and is listed under the HPC TOOLS
section
of the palette and the launcher.
As described in the JupyterLab documentation for a development install of the labextension you can run the following in this directory:
jlpm install # Install npm package dependencies
jlpm run build # Compile the TypeScript sources to Javascript
jupyter labextension install # Install the current directory as an extension
To rebuild the extension:
jlpm run build
If you run JupyterLab in watch mode (jupyter lab --watch
) it will automatically pick
up changes to the built extension and rebundle itself.
To run an editable install of the server extension, run
pip install -e .
jupyter serverextension enable --sys-prefix jupyterlab_slurm