Skip to content

Instantly share code, notes, and snippets.

@zonca
zonca / comet_spawner.py
Created August 16, 2017 02:01
Comet Spawner and Jupyterhub Config
import os
from tornado import gen
from batchspawner import SlurmSpawner, run_command
from traitlets import Unicode, default
class CometSpawner(SlurmSpawner):
req_other = Unicode('', config=True, \
help="Additional resources requested"
)