Skip to main content

Notify yourself via slack when lines or cells finish or error out.

Project description

slack_magic defines an IPython magic function to send notifications to a slack app when a process completes or fails.

Description

Install using pip install slack_magic

Load the extension within Jupyter or IPython %load_ext slack_magic

The first time you run %notify it will ask for your slack app webhook url. After that it will be stored in ~/.slack_magic.

Use the magic as either a cell or a line magic:

%load_ext slack_magic

# Send a confirmation that a line has run
%notify "Nothing wrong with this code"

# Send traceback to slack when an error is raised
%notify 1 / 0

# Send a confirmation that a cell has run
%%notify
"Nothing wrong with this code either"
a = 10
b = 144

# Send traceback to slack when an error is raised in the cell
%%notify
"This won't fail"
"But the next line will"
1 / 0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for slack-magic, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size slack_magic-0.0.3-py2.py3-none-any.whl (4.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page