π¨ Dangermode is a ChatGPT Plugin written with Python and FastAPI that allows users to execute code snippets in an IPython session.
- Execute code snippets in an IPython session through ChatGPT.
- Inspect variables and view results in real-time.
- Serve images and display data to ChatGPT.
To install the Dangermode package, use the following command:
pip install dangermode
π¨π¨π¨ YOU ARE GIVING AN AI ACCESS TO YOUR ENTIRE COMPUTER. π¨π¨π¨
After installing the package, you can use the Dangermode plugin in your IPython session. Here's how to get started:
- Import the
dangermode
package in your IPython session.
import dangermode
- Activate the Dangermode plugin.
dangermode.activate_dangermode()
- Use ChatGPT to run code snippets and interact with your IPython session.
GET /openapi.json
: Retrieve the OpenAPI JSON configuration.GET /.well-known/ai-plugin.json
: Retrieve the AI plugin JSON configuration.GET /images/{image_name}
: Retrieve an image by its name.GET /api/variable/{variable_name}
: Retrieve the value of a variable by its name.POST /api/run_cell
: Execute a code cell and return the result.
Please do. I can't let Large Language Models write all of it.
Please fork the repository, make your changes, and submit a pull request.
Dangermode is released under the BSD 3-Clause License. See LICENSE for more information.
If you have any questions or feedback, please feel free to reach out to the author, Kyle Kelley, on Twitter at @KyleRayKelley or just open an issue on the repository.