A Python Jupyter Kernel in Slack. Just send Python code as a message.
APACHE-2.0 License
One Slack bot to rule them all. PyBot. Just send Python code as a message.
pip install slack-ipython
To start the bot, simply run:
slack-ipython
For detailed output, add DEBUG=true
as an environment variable.
Create a .env
(or set these environment variables yourself).
SLACK_APP_TOKEN="xapp-..."
SLACK_BOT_TOKEN="xoxb-..."
APPROVED_SLACK_MEMBER_IDS="U01LXXXXXX,U01LXXXXXXX"
Security warning: this effectively gives full access to wherever you run this. Make sure you only add Slack member IDs of people you trust.
First create a new Slack app in the Slack app dashboard.
Your Slack app needs to have:
Or use the App Manifest slack_app.yaml.
Make sure you install the Slack app in your workspace after configuring the above.