Skip to content

Slurm kernel with different environments #2

@slychief

Description

@slychief

Hi,

first a big thank you! This kernel made so many things a lot easier!

Do you have an idea how it could be facilitated to create different SLURM kernels for different environments?

A straight forward approach would be to add a shell script to the kernel-cmd.

so instead of
--kernel-cmd="python -m ipykernel_launcher -f {connection_file}"
use
--kernel-cmd="my_kernel_env_starter.sh my_env -m ipykernel_launcher -f {connection_file}"
and then load all the environment modules and activate the environment.

The question is, would a more elegant solution also be possible, where this could be an additional parameter of the Slurm kernel implementation?

All the best,
Alexander

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions