alexi / juno

28 stars 2 forks source link

juno

Juno is an AI collaborator for your Jupyter notebooks. Ask juno to write full cells of code and answer questions about your data. Juno understands your notebook context, and can even auto-debug your code as you go.

Demo May 20th 2023

https://user-images.githubusercontent.com/100244608/234127637-d0d596fa-abfc-41ec-b01e-fafeb05e31e5.mp4

Getting Started Guide

To use Juno, you need to install the Juno package.

pip install juno-ai

Or you can also install directly from your Jupyter notebook.

%pip install juno-ai

Load the extension

Load the extension into your current Jupyter notebook.

%load_ext juno

For those new to Jupyter extensions, note you must load the extension at the top of each notebook.

Using Juno

You can ask Juno to write code for you by running %juno followed by your prompt in a cell.

It can write functions, create plots, or do data analysis in pandas. It knows about the variables you have defined in your notebook, so you ask it to work with your data without giving additional context.

For example, you can ask it to sample a random number from 1-10 by running the following cell:

%juno sample a random from 1-10

And Juno will write the following code for you:

import random

# sample a random number from 1-10
random_number = random.randint(1, 10)
random_number

You can also ask Juno to edit code for you by clicking the ✎ button, adding a prompt after %edit text, and running the cell. For example, you could ask it to sample from 1-100 instead and run the cell to have Juno edit the cell above:

# %edit sample from 1-100 instead
import random

# sample a random number from 1-100
random_number = random.randint(1, 100)
random_number

Finally, you can also use Juno to help debug errors in your code. Anytime you run into an exception in your Jupyter notebook, a Debug button will appear. When you click it, Juno will take a look at your error and try to fix it in a new cell.

Thanks for trying Juno! If you have any questions or feedback, please reach out to us at hellojunoai@gmail.com