Skip to content

Commit 916fef9

Browse files
committed
1 parent aa7fc55 commit 916fef9

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22

33
Spawn nextflow pipelines from Jupyter and configure them interactively.
44

5-
Works best together with https://github.com/phue/jupyter-nextflow-proxy.
6-
75
:warning: This requires the pipeline to come with a [nextflow_schema.json](https://nextflow-io.github.io/nf-schema/) (`draft-2020-12`)

nextflowspawner/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@
1010
from traitlets import default, Dict, Unicode
1111
from urllib.parse import urlparse
1212

13+
def ignite():
14+
return {
15+
'command': ['nextflow', 'run', os.environ['NXF_USER_WORKFLOW'], '-r', os.environ['NXF_USER_REVISION'], '--PORT={port}', '-resume', '-params-file', os.environ['NXF_USER_PARAMS']],
16+
'timeout': 120,
17+
'launcher_entry': {'title': 'Nextflow'}
18+
}
19+
1320
class NextflowSpawner(LocalProcessSpawner):
1421

15-
default_url = Unicode('/nextflow', help="The entrypoint for https://github.com/phue/jupyter-nextflow-proxy")
22+
default_url = Unicode('/nextflow', help="The entrypoint for the server proxy")
1623

1724
workflow_url = Unicode(config=True, help="The url of the pipeline repository.")
1825
workflow_revision = Unicode('main', config=True, help="The revision of the pipeline repository.")

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22

33
setuptools.setup(
44
name="nextflowspawner",
5-
version='0.7.3',
5+
version='0.8.0',
66
url="https://github.com/phue/nextflowspawner",
77
description="Spawn Nextflow pipelines from Jupyterhub and configure them interactively",
88
author="Patrick Hüther",
99
keywords=['Jupyter', 'Nextflow'],
1010
classifiers=['Framework :: Jupyter'],
1111
entry_points={
12+
'jupyter_serverproxy_servers': [
13+
'nextflow = nextflowspawner:ignite'
14+
],
1215
'jupyterhub.spawners': [
1316
'nextflow = nextflowspawner:NextflowSpawner',
1417
],
1518
},
1619
python_requires=">=3.10",
17-
install_requires=['jsonschema', 'jupyterhub>=5.0.0', 'jupyter-nextflow-proxy@git+https://github.com/phue/[email protected]'],
20+
install_requires=['jsonschema', 'jupyterhub>=5.0.0', 'jupyter-server-proxy'],
1821
)

0 commit comments

Comments
 (0)