Skip to main content

nb_cron

Anaconda version Install with conda PyPI version Build Status Coverage Status

Provides crontab access from within Jupyter.

Cron tab in the Jupyter file browser

This extension adds a Cron tab to the Jupyter file browser and a Cron menu item in notebook view. Features include:

  • View the list of the cron job(s) that currently exist.
    • Edit existing cron job(s)
    • Delete existing cron job(s)
  • Add new cron job
  • Helper to build papermill command
    • Allows setting of notebook's environment, kernel and parameters
    • Able to inspect notebook (relative or full path) to extract environment, kernel and parameters to build papermill command and options
    • Able to set commands to run before and/or after papermill using jupyter_nbextensions_configurator

Installation

After installing the package using conda or pip, you can add nb_cron to jupyter as follows:

jupyter nbextension install nb_cron --py --sys-prefix --symlink
jupyter nbextension enable nb_cron --py --sys-prefix
jupyter serverextension enable nb_cron --py --sys-prefix

Cron tab in tree view

To create a new cron job:

  • Use the Create New Cron Job button at the top of the page, and fill in the bash command and cron schedule.
  • Use the Notebook Command Builder to build a bash command for running a notebook using papermill.

To edit an existing cron job:

  • Click the Edit button on the left of a cron job listing and fill in the bash command and cron schedule.

To delete an existing cron job:

  • Click the Trash button on the left of a cron job listing to delete the cron job.

Cron menu item in notebook view

To manage cron jobs

  • Click View cron jobs (refer to cron tab in tree view)

To schedule new cron job for current notebook

  • Click Schedule notebook job.
  • Opens up the Create new job and Notebook command builder dialog.
  • Auto inspect notebook and fill up the Notebook command builder dialog.

To edit existing cron job that uses current notebook

  • Click Edit notebook job.
  • Only available if there is an existing cron job contains the current notebook in the cron command.
  • Only able to edit the first job. Please use View cron jobs to edit if there are multiple jobs for the notebook.

To set parameters tag for papermill

  • Click notebook cell that you want to parameterize (cell that contains all the parameters for running papermill)
  • Click Cron > Set papermill parameters cell in menu bar.

Metadata

Release files for nb-cron 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nb-cron 0.4.5
File Size Uploaded
nb_cron-0.4.5.tar.gz 85.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nb-cron 0.4.5
File Interpreter ABI Platform
nb_cron-0.4.5-py3-none-any.whl Python 3 none any Details

Total release size: 180.8 kB

Release files / nb_cron-0.4.5.tar.gz

Download URL nb_cron-0.4.5.tar.gz
Size 85.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7047cb8fd95c49796f18122ca062894eb34846e23b5ce0d469bdd83845761e5a
BLAKE2b-256 checksum
How to use checksums
87ae60a34cc95d918203586528ef34dff0fe25fe6e62530e907e85ea305e8739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / nb_cron-0.4.5-py3-none-any.whl

Download URL nb_cron-0.4.5-py3-none-any.whl
Size 95.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff0f8c27e936f834cec9731b853c420307a9b80505aa63c93f02d2f5124fd955
BLAKE2b-256 checksum
How to use checksums
1cd19e1ee02b66e84cea974da99e95999cba599aaa4aeaa06295321246d6c989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.4.5 This release

2 release files

0.4.4

2 release files

0.4.3

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page