Skip to main content

Jupyterlab extension to show notebook cell completion browser notifications

Project description

jupyterlab-notifications

Github Actions Status Binder PyPI npm

Notebook Cell Completion Browser Notifications for JupyterLab.

notification

Requirements

  • Web Browser that supports the Notification Web API (See Browser Compatibility Chart)
  • JupyterLab >= 3.0
  • Notebook Cell Timing needs to be enabled for Jupyterlab Notifications to work. Please go to Settings -> Advanced Settings Editor -> Notebook and update setting to:
{
  // Recording timing
  // Should timing data be recorded in cell metadata
  "recordTiming": true
}

Install

For JupyterLab 3.x, the extension can be installed with pip:

pip install jupyterlab-notifications

Settings

Use the following settings to update cell execution time for a notification and information to display in the notification. (in Settings > Advanced Settings Editor):

{
    // Notifications
    // jupyterlab-notifications:plugin
    // Settings for the Notifications extension
    // ****************************************

    // Enabled Status
    // Enable the extension or not.
    "enabled": true,

    // Minimum Notebook Cell Execution Time
    // The minimum execution time to send out notification for a particular notebook cell (in seconds).
    "minimum_cell_execution_time": 60,

    // Report Notebook Cell Execution Time
    // Display notebook cell execution time in the notification.
    "report_cell_execution_time": true,

    // Report Notebook Cell Number
    // Display notebook cell number in the notification.
    "report_cell_number": true
}

notification

Contributing

Development install

Note: You will need NodeJS to build the extension package.

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# Clone the repo to your local environment
# Change directory to the jupyterlab-notifications directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jlpm run install:extension
# Rebuild extension Typescript source after making changes
jlpm run build

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab

With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

Uninstall

pip uninstall jupyterlab-notifications
jupyter labextension uninstall jupyterlab-notifications

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

jupyterlab-notifications-0.1.4.tar.gz (83.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyterlab_notifications-0.1.4-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab-notifications-0.1.4.tar.gz.

File metadata

  • Download URL: jupyterlab-notifications-0.1.4.tar.gz
  • Upload date:
  • Size: 83.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for jupyterlab-notifications-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c54cbcb1952209594a7844b88a4f2e1707c6d9c13fcf748fa2ba38f6a196f6b2
MD5 a7defebe9a68012adaa608821d6b674b
BLAKE2b-256 21d35dcccadff4c79d1a402bfb0ad68d2c91950d94d03d5150005dd71d636073

See more details on using hashes here.

File details

Details for the file jupyterlab_notifications-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: jupyterlab_notifications-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for jupyterlab_notifications-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d243bc3507d028283f3ea2c9db1c04e12cab39e9bc3c609ca85959148bc0f4c9
MD5 f10230bb8c206a9dd1c42b0ed66f0883
BLAKE2b-256 41a73c2741c8cd54baf9ed03a5b6d257e68a45d7be21df579661691b6043f1df

See more details on using hashes here.

Supported by

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