A Jupyter magic for sending e-mail after cell completion
Project description
Email-Notify-Magic
Send an email after cell execution complete.
Obs: Currently only used with gmail.
Install
pip install email-notify-magic
Usage
- Load the magic extension:
%load_ext email_notify_magic
- Run the cell magic in jupyter notebook (see options bellow):
%%email email@gmail.com
-
Insert password in the prompt and done
-
Make sure your email account is enable for such usage (see link and less-secure-apps). It is recommend not to use personal accounts.
Option:
- Sender and receiver same email address if
--to
is not supplied.
%%email email@gmail.com
- Set receiver with
--to
[-t
]:
%%email email@gmail.com --to receiver@gmail.com
- Set e-mail subject
--subject
[-s
]:
%%email email@gmail.com --s 'My subject'
- Set e-mail body
--body
[-b
]:
%%email email@gmail.com --body 'From cell x'
Notice that the cell output is used if --body
is not provided.
- Save password in jupyter session for latter usage
--keep-password
[-k
]:
%%email email@gmail.com --body 'From cell x' -k
The next cell evoked with %%email
will not require the password.
Others
- Notification after cell execution inspired by jupyter-notify
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
Close
Hashes for email_notify_magic-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9866bf9946cfcaa0f2f72ce3bdb2d04f9daf851308ad9bcae7a2ebcec11fd050 |
|
MD5 | 734ca64c78d555b73f8cf8407b8fad95 |
|
BLAKE2b-256 | d0585e58da21de62831a1b1132cafdb04862815d9907d45e335d0e71bd95ba9d |