Using Putty, i have a series of bash documents that run nbclient for me, but i want to get a notification in the notebook execution fails. I haven't figure out how to rig that.
!/bin/bash
export PATH=/home/ubuntu/anaconda3/bin:$PATH
jupyter nbconvert --to notebook --execute /home/ubuntu/MyNotebooks/Notebook.ipynb
add some line of code to send email if execution fails, times out, etc.