No project description provided
Project description
Notify Jupyter (ntfy.sh)
ntfy-jupyter
is a very simple IPython extension that allows you to send notifications using the ntfy service. Ntfy is an open source service which makes subscribing and sending notifications super easy. This library helps you keep track your notebook tasks and results, sending notifications upon cell execution or failure.
Table of Contents
Installation
To install ntfy-jupyter
, use Poetry or pip.
Using Poetry
-
Clone the repository:
git clone https://github.com/vali101/ntfy-jupyter cd ntfy-jupyter
-
Install dependencies:
poetry install
Using pip
Alternatively, you can install ntfy-jupyter
directly from PyPI:
pip install ntfy-jupyter
Usage
To use this extension you need to install ntfy on your preferred device. Then subscribe to your own custom channel, all channels are private but you can e.g. append a secret to make them pseudo-private. You can use the utility function like:
from ntfy_jupyter import create_topic
topic = create_topic('alerts') # e.g. -> alerts-zHgv2B6LCd8nCkNoj18p9j
To create a topic-channel with secret. Then in a jupyter notebook just load the extension via:
%load_ext ntfy_jupyter
Use the notify
magic command to get infos about cell execution or errors:
%%notify -t your_topic -m "Your message" -e -i
# Your cell code here
-t
or--topic
: The topic for the notification.-m
or--message
: The message to send. Defaults to an empty message.-e
or--errors
: Include error details in the notification if the cell fails.-i
or--include
: Include the cell code in the notification.
Development
To contribute to the development of ntfy-jupyter
, follow these steps:
-
Clone the Repository:
git clone https://github.com/yourusername/ntfy-jupyter.git cd ntfy-jupyter
-
Set Up Development Environment:
poetry install
-
Make Your Changes and submit a pull request.
For detailed contribution guidelines, refer to CONTRIBUTING.md.
Contributing
We welcome contributions to ntfy-jupyter
. Please follow these guidelines:
- Fork the Repository: Create your own fork of the repository.
- Create a Branch: Make a new branch for your changes.
- Submit a Pull Request: Provide a clear description of your changes.
Please ensure your code adheres to the project's style guide and passes all tests.
License
ntfy-jupyter
is licensed under the MIT License. See LICENSE for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ntfy_jupyter-0.1.1.tar.gz
.
File metadata
- Download URL: ntfy_jupyter-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.9 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3bd21f73be290ad19179ff061d26d34940250145fd6636fbe6023eefc1e772d |
|
MD5 | 09b1632b3504a231a0869a68eb04b116 |
|
BLAKE2b-256 | a5a5deb11617b74e3c8da19079932a180dbdc80973159f0d2a7c60843c828e65 |
File details
Details for the file ntfy_jupyter-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: ntfy_jupyter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.9 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6567cfb61ee707661cf45b17dd0d6e4dea7f8da6127e637a1c0e634e0836d8d5 |
|
MD5 | 399a04736b0dd0da659fe19fb8105a11 |
|
BLAKE2b-256 | b4ce09409692d412312900a21ec86b079fa6b4e7b63df71a8dc60aea98b32647 |