Starting a jupyter kernel using srun
Project description
SLURM Jupyter Kernel
Create jupyter kernels and run kernel using srun
Installation
Clone Repository
git clone https://github.com/mawigh/slurm_jupyter_kernel.git
Install using pip
python3 -m pip install -e slurm_jupyter_kernel/
Create a new kernel
Get help
$ slurmkernel --help
usage: Adding jupyter kernels using slurm [-h] {create} ...
positional arguments:
{create}
create create a new slurm kernel
optional arguments:
-h, --help show this help message and exit
Example
$ slurmkernel create --displayname="Python 3.8.0" --account=hpc-group --time=00:30:00 --kernel-cmd="python3 -m ipykernel_launcher -f {connection_file}" --partition=batch
Try to create new jupyter slurm kernel "Python 3.8.0" ...
{
"argv": [
"/usr/bin/python3",
"-m",
"slurm_jupyter_kernel",
"--partition",
"batch",
"--account",
"hpc-group",
"--time",
"00:30:00",
"--kernel-cmd",
"python3 -m ipykernel_launcher -f {connection_file}",
"--connection-file",
"{connection_file}"
],
"display_name": "SLURM Python 3.8.0"
}
Successfully created kernel "SLURM Python 3.8.0" :-)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for slurm_jupyter_kernel-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fb79ec41ee58ee187bc2c4ebeba5751e3b305f7fbd7332d901cc3f916386b4f |
|
MD5 | ca9fe6ee198979e926c8889e64369f9e |
|
BLAKE2b-256 | 07d4d9fea4c3b2be4823929760c3a25dfcc0b818e61140fdae87ce071abb4625 |