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 details)

Uploaded Python 2 Python 3

File details

Details for the file slack_magic-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: slack_magic-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for slack_magic-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0c97762a05f2432af14cc29090674c4e6c100770b2b811c76f5d7d4c75c4b588
MD5 add930a23cf2c8c22bb128699137ecd7
BLAKE2b-256 40c8a127549b847f8d74d3be29136f36f8dcb493689a8ce389fcd74cc4b22cb1

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