Skip to main content

Unit Tests PyPI PyPI - Python Version GitHub

🚀 Notebook Copilot: Turn Your Thoughts Into a Polished Notebook at Record-Speed with AI.

Welcome to Notebook Copilot, your next-generation tool for Jupyter Notebooks. Inspired by GitHub Copilot, Notebook Copilot is designed to help data scientists and engineers 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 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

!pip install notebook_copilot
%load_ext notebook_copilot
%copilot

Walk-through

  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: ")
  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.

%%code 
# Plot the confusion matrix for each model
# Plot the precision-recall curve for Catboost

📘 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…

⚡ Improve the time complexity of the code in no time. Copilot will generate an alternative code cell that is optimized for speed.

%%optimize
# a code cell…

🎨 1 plot >= 1000 data rows. Visualize your data with a single line of code.

%%visualize
# a code cell…

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
  • Optimize Magic Function: Generate an Aleternative Code Cell that is Optimized For Speed / Simplicity
  • Visualize Magic Function: Generate a Cell that Visualize Your Data
  • Speed improvenents
    • Support parallel cell generation
  • Update underlying strategy and prompts
  • Support more llm providers
    • Starcoder
    • Anthropic

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.

Metadata

Release files for notebook-copilot 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notebook-copilot 0.2.0
File Size Uploaded Provenance Actions
notebook_copilot-0.2.0.tar.gz 14.2 kB Without provenance Details for notebook_copilot-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for notebook-copilot 0.2.0
File Interpreter ABI Platform Actions
notebook_copilot-0.2.0-py3-none-any.whl Python 3 none any Details for notebook_copilot-0.2.0-py3-none-any.whl

Total release size: 29.4 kB

Release files / notebook_copilot-0.2.0.tar.gz

Download URL notebook_copilot-0.2.0.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
110cc3584a629f86f639e26cff39ebc19508110d846b85fbdea99c9a396033e2
BLAKE2b-256 checksum
How to use checksums
7c898efcd02cd00a578a7e76094d007eb729b16419d6bd2a8c97f8feb47c87e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / notebook_copilot-0.2.0-py3-none-any.whl

Download URL notebook_copilot-0.2.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85f53550af5d05d5c04f817d0db41e059a442e663bd3035559c5f4e238f8edcf
BLAKE2b-256 checksum
How to use checksums
1296ffcdeab9ddad34752566a88b1e201c147570c64b5c3044c540dc2ad2c723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Security for notebook-copilot 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page