CRON scheduler for Jupyter Lab
Project description
jupyterlab_scheduler
A simple plugin for scheduling files for recurring execution using the cron utility within the Jupyter Lab UI. Use cases
Security Note: Cron jobs are executed under the permission set of the JupyerLab process; if you start jupyter as root (not recommended!) every job that is scheduled via the UI will also run as root.
Screenshots
Scheduling a job
Viewing Scheduled Jobs
Viewing Run Logs
Prerequisites
- JupyterLab
- Cron installed on the JupyterLab host
Installation
To install using pip:
jupyter labextension install jupyterlab_scheduler
Development
For a development install (requires npm version 4 or later), do the following in the repository directory:
# Clone the repo to your local environment
# Move to jupyterlab_scheduler directory
# Install dependencies
npm install
# Install your development version of the extension
jupyter labextension install .
You run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild.
# Run jupyterlab in watch mode
jupyter lab --watch
Now every change will be built locally and bundled into JupyterLab. Be sure to refresh your browser page after saving file changes to reload the extension (note: you'll need to wait for webpack to finish, which can take 10s+ at times).
# Run jupyterlab in auto reload mode
jupyter lab --autoreload --NotebookApp.token='' --NotebookApp.password='' --no-browser
Works better when developing server extensions
Publishing
To build the plugin for disitibution on Pypi:
python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository pypi dist/*
Uninstall
jupyter labextension uninstall jupyterlab_scheduler
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
Built Distribution
Hashes for jupyterlab_scheduler-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32d2fefa2b68f98eee1c64d1b37b970c280ac5fd7fbe1935b2947c5dad71b38 |
|
MD5 | 3a9ae3444888b769ef3c59ff88e67225 |
|
BLAKE2b-256 | ee34bb0c4870db374cff95db320831dc19934847ea880160d5a406f783739c23 |
Hashes for jupyterlab_scheduler-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72468dc3a141ddd1dc9d20c6179b6335202bb5c24be587206c6006ab6c33ae8c |
|
MD5 | c076675dc145bce11b85ea7bdfa24bb8 |
|
BLAKE2b-256 | 5ab3d46293d2279f9b5e6d6b4bcdde29706b2072536bdc9f218f54ec31227e20 |