エラー発生時に毎回slackに通知を送る #python #slack #jupyter
code by Slack Error Notification (chatgpt.com)
import requestsimport sysimport traceback# SlackのWebhook URLSLACK_WEBHOOK_URL = 'your-slack-webhook-url'def send_slack_notification(message: str, webhook_url: str): payload = { "text