Skip to main content

Notifications for SWAN

Project description

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

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

swannotifications-1.0.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

swannotifications-1.0.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file swannotifications-1.0.0.tar.gz.

File metadata

  • Download URL: swannotifications-1.0.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for swannotifications-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2435c8a7986038c4d0219063bd05091d857ed8f20bfcf4d6f457d2a7830aef41
MD5 948c7cede2358d1e8833a0755f116b7e
BLAKE2b-256 d9af1d2516620d0fb9cf401c9327d184b8a03ea619c3f5a28272990ce752349b

See more details on using hashes here.

File details

Details for the file swannotifications-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: swannotifications-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for swannotifications-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa58b5f05e445459c130c88cdff2cf8c95468c87baea87556cefeb4644508f9f
MD5 7169d0d3db0fbdbf533eaa31c1139f7d
BLAKE2b-256 f752ff4c67b23a3934eca641dbfdc44015030f630c3044db09b8a028dd78dc34

See more details on using hashes here.

Supported by

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