help="Name of job. Only needed if you run multiple servers and want to be able to recognize a particular one in the cluster queue.")
parser.add_argument("-u","--user",
dest="user",
type=str,
default=getpass.getuser(),
help="User name on the cluster. Only needed if your user name on the cluster is different from the one you use on your own computer.")
parser.add_argument("-e","--environment",
dest="environment",
type=str,
default='',
help="Conda environment to run jupyter in.")
parser.add_argument("-A","--account",
dest="account",
type=str,
default=None,
help="Account/Project to run under. This is typically the name of the shared folder you work in. Not specifying an account decreases your priority in the cluster queue.")
parser.add_argument("-f","--frontend",
dest="frontend",
type=str,
default="login.genome.au.dk",
help="URL to cluster frontend.")
parser.add_argument("--ipcluster",
dest="ipcluster",
action='store_true',
default=False,
help="Start an ipcluster")
defslurm_jupyter():
"""Command line script for use on a local machine. Runs and connects to a jupyter server on a slurm node.
"""
description="""
The script handles everyting required to run jupyter on the cluster but show the notebook or jupyterlab
in your local browser."""
not_wrapped="""See github.com/kaspermunch/slurm_jupyter for documentation and common use cases."""