Skip to main content

SwanNotifications

Jupyter extension to display users' notifications.

This extension is composed of a Python package named swannotifications, which installs the nbextension and a NPM package named @swan-cern/swannotifications for the JupyterLab extension.

Requirements

  • JupyterLab >= 2.0

Install

Note: You will need NodeJS to install the extension.

pip install swannotifications
jupyter nbextension install swannotifications --py
jupyter nbextension enable  swannotifications --py
jupyter lab build

Troubleshoot

If you are not seeing the frontend, check if it's installed:

jupyter labextension list

If it is installed, try:

jupyter lab clean
jupyter lab build

Contributing

Install

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
# Move to swannotifications directory

# Install server extension
# This will also build the js code
pip install -e .

# Install and enable the nbextension
jupyter nbextension install swannotifications --py --sys-prefix
jupyter nbextension enable  swannotifications --py --sys-prefix

# Link your development version of the extension with JupyterLab
jupyter labextension link .
# Rebuild JupyterLab after making any changes
jupyter lab build

# Rebuild Typescript source after making changes
jlpm build
# Rebuild JupyterLab after making any changes
jupyter lab build

You can watch the source directory and run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild the extension and application.

# Watch the source directory in another terminal tab
jlpm watch
# Run jupyterlab in watch mode in one terminal tab
jupyter lab --watch

Uninstall

pip uninstall swannotifications
jupyter labextension uninstall @swan-cern/swannotifications

Metadata

Release files for swannotifications 1.0.0

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

Source distribution (sdist)

Source distribution for swannotifications 1.0.0
File Size Uploaded
swannotifications-1.0.0.tar.gz 16.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swannotifications 1.0.0
File Interpreter ABI Platform
swannotifications-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.5 kB

Release files / swannotifications-1.0.0.tar.gz

Download URL swannotifications-1.0.0.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2435c8a7986038c4d0219063bd05091d857ed8f20bfcf4d6f457d2a7830aef41
BLAKE2b-256 checksum
How to use checksums
d9af1d2516620d0fb9cf401c9327d184b8a03ea619c3f5a28272990ce752349b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / swannotifications-1.0.0-py3-none-any.whl

Download URL swannotifications-1.0.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa58b5f05e445459c130c88cdff2cf8c95468c87baea87556cefeb4644508f9f
BLAKE2b-256 checksum
How to use checksums
f752ff4c67b23a3934eca641dbfdc44015030f630c3044db09b8a028dd78dc34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

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