%plz
is a Jupyter magic command that generates programs from human-readable descriptions in Jupyter notebooks.
demo.mov
You can install plz
in your Python virtual environment by running the following command in your terminal:
pip install plz
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_plz
package 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."
This tool is inspired by plz-cli (designed for the command line).
This project is open-sourced under the MIT license. See the License file for more information.