Skip to main content

The Bridge from Thoughts to Well-Crafted Jupyter Notebook

Project description

🚀 Notebook Copilot: From Thoughts to Well-Crafted Notebook at Record-Speed.

Welcome to Notebook Copilot, your next-generation tool for Jupyter Notebooks. Inspired by GitHub Copilot, Notebook Copilot is designed to help engineers and data scientists in developing professional, high-quality notebooks. It's like having your personal AI-powered assistant that helps you navigate through the Jupyter universe, seamlessly generating code and markdown cells based on your inputs.

Imagine not having to start with a blank notebook every time. Sounds dreamy, right?

v1 Demo

https://github.com/talperetz/notebook-copilot/assets/11588598/02e2b030-adb3-42f2-bd6d-4a8451e3831f

Features

  • 🚀 GPT Based Generation: Notebook Copilot employs advanced GPT instances for precise and efficient code generation.
  • 💻 Integrated with Any Notebook Environments: Seamless access within Jupyter Notebook and other popular platforms, boosting your productivity.
  • 🧩 Automatic Context Retrieval: Understands the full context of your notebook, ensuring consistent and relevant code generation.
  • 🔑 Bring Your Own OpenAI Key: Flexibility to use your own OpenAI key for personalized code generation and optimal results.
  • 🆓 Free and Open Source: Everyone can benefit from Notebook Copilot. It's our contribution to the coding community, aiming to make coding accessible, efficient, and fun.

Quickstart

  1. Get an OpenAI API Key
  2. Install Notebook Copilot directly from PyPI:
pip install notebook_copilot
  1. Load the Notebook Copilot extension in your Jupyter notebook:
%load_ext notebook_copilot

# Optional: If you don't have OPENAI_API_KEY set in your environment, you can set it here
from getpass import getpass
import os
os.environ["OPENAI_API_KEY"] = getpass("Enter your OpenAI Key: ")

%copilot_init -n /Users/tp/dev/workspace/notebook_copilot/copilot_example_notebook.ipynb # improves copilot performance
  1. Start using Notebook Copilot Magic Functions in your notebook ↓

✨ Magic Functions

🪄 Enter Assistant Mode and let Copilot continuously generate professional code and markdown cells for you.

%copilot

✍️ Leverage AI to create the next cell from your comments. It's like having a conversation with your notebook.

%%generate 
# Plot the confusion matrix using for the model

📘 Automatically generate markdown cells to explain the code in the current cell. Your code is now not only functional but also well-documented.

%%explain
# some code to explain…

Roadmap

  • Copilot Magic Function: Continues the notebook for you, generating professional code and markdown cells, making blank notebooks a thing of the past.
  • Generate Magic Function: Turn Your Comments into Code
  • Explain Magic Function: Generate Markdown Cells that Explain Your Code
  • Support parallel cell generation
  • Update underlying strategy and prompts
  • Support more llm providers
    • Starcoder
    • Anthropic
  • AI-Powered Code completion inside cells

Contributing

We appreciate all contributions. If you're planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions, or extensions to the core, please first open an issue and discuss the feature with us.

License

Notebook Copilot is MIT licensed, as found in the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notebook_copilot-0.1.4.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

notebook_copilot-0.1.4-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file notebook_copilot-0.1.4.tar.gz.

File metadata

  • Download URL: notebook_copilot-0.1.4.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for notebook_copilot-0.1.4.tar.gz
Algorithm Hash digest
SHA256 185c1b66204d63df6bc5a73a0d1ad82a0284cb9653e8e7197f753c422dbb9088
MD5 93d483b88ad4a49cf8a47f7c14f0b377
BLAKE2b-256 1004e0f7f31dc7d0bde234d816f5a53f9f5426270c8223d50f978c1c5b43df55

See more details on using hashes here.

File details

Details for the file notebook_copilot-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for notebook_copilot-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a4718c17cf47da9958fb1148765bd8216d28e6630e40d22292447a3f5d31c6d6
MD5 9c5dfca27aedbee57000768d77b3280f
BLAKE2b-256 8bdc44acc7549f575a45803ce48dcaf7f61ee0df22406647dd276e89f3e5494b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page