CLI to schedule Jupyter Notebook execution with Papermill and Argo
yason: Jupyter Notebook Scheduler for Argo
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.
- Free software: MIT license
- Documentation: https://yason.readthedocs.io.
- Check the status of all scheduled notebook jobs
- Schedule a notebook for execution
- Get resulting notebook after execution
- Delete scheduled notebook job
- Including multiple files/folders together with Notebook for execution
- Integration with Argo events for scheduling
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
To use Yason in Python project:
from yason import yason
To use Yason as CLI tool, type:
yason COMMAND [ARGS]
To see the list of all scheduled Notebooks for your JupyterHub username, type:
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>
yason get 25fe9753bc854148aac26ff7d97ba128 My_Notebook_result.ipynb
To delete the scheduled Notebook from your list, type:
yason delete <Workflow ID>
yason delete 25fe9753bc854148aac26ff7d97ba128
Yason (or Jason) in Greek mythology is the leader of Argonauts. Yason brings your Jupyter Notebooks on board of Argo (Workflows).
- First release on PyPI.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size yason-0.1.4-py2.py3-none-any.whl (7.6 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View hashes|
|Filename, size yason-0.1.4.tar.gz (12.4 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for yason-0.1.4-py2.py3-none-any.whl