Skip to main content

CLI to schedule Jupyter Notebook execution with Papermill and Argo

Project description

https://img.shields.io/pypi/v/yason.svg https://img.shields.io/travis/com/ktaletsk/yason.svg Documentation Status Updates

yason: Jupyter Notebook Scheduler for Argo

logo

JupyterHub deployed on Kubernetes allows teams to do data analysis in the browser and efficiently share computational resources. But when it comes to Jupyter Notebooks, it is not easy to run them remotely and non-interactively or schedule them. Fortunately, with Papermill and Argo Workflows it is now possible to do just that. Yason is Python package and CLI for scheduling the remote execution of Jupyter Notebooks.

Features

  • Check the status of all scheduled notebook jobs

  • Schedule a notebook for execution

  • Get resulting notebook after execution

  • Delete scheduled notebook job

Coming soon

  • Including multiple files/folders together with Notebook for execution

  • Integration with Argo events for scheduling

Prerequisites

Yason is intended to run on JupyterLab pods spawned by JupyterHub deployed on Kubernetes. Yason also requires Argo Workflows to be deployed on the same cluster in the namespace argo. S3 bucket is required for intermediate storage of Notebooks before and after their execution.

See more details and instructions in the full documentation https://yason.readthedocs.io

Usage

To use Yason in Python project:

from yason import yason

CLI Tool

To use Yason as CLI tool, type:

yason COMMAND [ARGS]

To see the list of all scheduled Notebooks for your JupyterHub username, type:

yason list

To schedule and execute Notebook immediately, type:

yason run <Notebook Name>.ipynb

To get the resulting Notebook after execution, type:

yason get <Workflow ID> <Destination>

i.e.:

yason get 25fe9753bc854148aac26ff7d97ba128 My_Notebook_result.ipynb

To delete the scheduled Notebook from your list, type:

yason delete <Workflow ID>

i.e.:

yason delete 25fe9753bc854148aac26ff7d97ba128

Name

Yason (or Jason) in Greek mythology is the leader of Argonauts. Yason brings your Jupyter Notebooks on board of Argo (Workflows).

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2019-05-22)

  • First release on PyPI.

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

yason-0.1.4.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

yason-0.1.4-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yason-0.1.4.tar.gz.

File metadata

  • Download URL: yason-0.1.4.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3

File hashes

Hashes for yason-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c05dda6856a24e915174885d0479ae0436c467ecc107484e3771d9ea8ab74c7f
MD5 1517929db26b08b196954a17977dec83
BLAKE2b-256 4708a372b0724164b9ad7d11e342bb8d9f1763cf0f753a752ba3dfe68075e835

See more details on using hashes here.

File details

Details for the file yason-0.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: yason-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3

File hashes

Hashes for yason-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0b0da6074efa6f8b97a067cba74f03f3d0dd76a56b6115957a2673b6cb88870e
MD5 6f0410e8b888e6460bd1e365d81093dc
BLAKE2b-256 52bde55871f1b0abf8246c2c6bacba27f9117a7cca753bb3e359424d09241b99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page