GithubHelp home page GithubHelp logo

isabella232 / jupyterlab-notifications Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jupytercalpoly/jupyterlab-notifications

0.0 0.0 0.0 1.9 MB

Toast notifications for JupyterLab

License: BSD 3-Clause "New" or "Revised" License

Python 27.14% TypeScript 67.51% CSS 0.13% JavaScript 5.05% SCSS 0.16%

jupyterlab-notifications's Introduction

jupyterlab_notifications

Github Actions StatusBinder

Toast notifications for JupyterLab

Untitled ipynb (2) - JupyterLab

Press Release

JupyterLab Notifications

A notification system for JupyterLab

Would you like to have customizable notifications from notebooks and other extensions while working inside JupyterLab? Well, now you can! JupyterLab Notifications provides a notification system for JupyterLab that includes the ability for extensions to send notifications to users as well as a platform where users can get back to past notifications.

Notifications are often seen as an annoyance to users because they don’t want to be constantly reminded of trivial updates. However, without a notification system in place there is no way for users to be aware of updates from the app. Currently, there is no notification system in JupyterLab. Today, users need to go into each of their Jupyter notebooks and manually check to find relevant events or updates by collaborators. Also, JupyterLab extensions can’t communicate with their users across tabs or applications to provide relevant updates like cell execution in notebooks.

JupyterLab Notifications provides the ability for any extension in JupyterLab to send notifications to users. Notifications will present themselves for a set timeframe, but they can also be manually dismissed to ensure they won’t hinder the user’s view. Notifications contain information to call users to action, inform them of system updates, and other announcements, thus further establishing a collaborative environment among JupyterLab users. The Notifications extension makes it possible for all collaborators to receive a visible notification of their progress. This improved notification system will support passive pop-up toast-style notifications. However, users can customize the settings to control notifications to either pop-up with toast notifications or go straight to the notification center. Through toast notifications, multiple updates can be batched together based on the JupyterLab extension or collaborator. By doing so, the number of notifications will be dramatically decreased. While an integrated notification center allows users to look back on notifications, they might have missed and flag particular notifications for later. To improve the user’s experience, the notification system is customizable for users to choose the types of notifications they prefer to receive and their frequency.

“Notifications allows users to receive current updates within JupyterLab and stay aware of what their fellow collaborators are working on. Users from all experience levels are now able to easily use our notification center to better communicate with their colleagues.” —Jupyter Developer

To get started as a user, install the JupyterLab Notifications extension and begin receiving notifications from your favorite JupyterLab extensions!

To get started as a developer, install the extension and use a simple and straightforward API to send notifications to users.

"The JupyterLab Notifications extension has changed my Jupyter experience for the better! It makes sure I get updates on the progress of my teammates in real-time, so I can never miss a moment."
—JupyterLab Notifications User

Are you ready to never miss out on any updates in JupyterLab? Make sure to download JupyterLab Notifications today!

Requirements

  • JupyterLab >= 3.0

Install

To install the extension, execute:

pip install jupyterlab_notifications

Uninstall

To remove the extension, execute:

pip uninstall jupyterlab_notifications

Cell execution notifications

Notebook Cell Timing needs to be enabled for Jupyterlab Notifications to work. Please go to Settings -> Advanced Settings Editor -> Notebook and update setting to {"recordTiming": true}

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
jupyter labextension develop . --overwrite
# 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).

By default, the jlpm run build command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:

jupyter lab build --minimize=False

Development uninstall

pip uninstall jupyterlab_notifications

In development mode, you will also need to remove the symlink created by jupyter labextension develop command. To find its location, you can run jupyter labextension list to figure out where the labextensions folder is located. Then you can remove the symlink named jupyterlab-notifications within that folder.

jupyterlab-notifications's People

Contributors

afshin avatar andrii-i avatar cameron-toy avatar hxmittal avatar marissathai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.