jupyter_plz
jupyter_plz copied to clipboard
Copilot for Jupyter notebooks.
Copilot, for your Jupyter Notebook
%plz is a Jupyter magic command that generates programs from human-readable descriptions in Jupyter notebooks.
https://user-images.githubusercontent.com/11509740/210084133-61f2cb2d-9968-4b01-8a67-85fcb92eb312.mov
Installation
You can install plz in your Python virtual environment by running the following command in your terminal:
pip install plz
Usage
plz uses GPT-3. To use it, you'll need to:
- Activate billing on your OpenAI account.
- Grab an API key from your dashboard.
- Provide the API key to the
jupyter_plzpackage upon request inside your notebook.
Once you have configured your environment, you can run the plz magic command in your notebook. Example:
%plz "create a function that generates a random walk in the form of an array."
Or markdown guides:
%plz --markdown "Provide a step-by-step guide on how to identify anomalies in a list of numbers."
Credit
This tool is inspired by plz-cli (designed for the command line).
License
This project is open-sourced under the MIT license. See the License file for more information.