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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

slack_magic-0.0.3-py2.py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 2 Python 3

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