Skip to main content

Thread Logo

AI-powered Jupyter Notebook

Thread is a Jupyter alternative that integrates an AI copilot into your Jupyter Notebook editing experience.

Thread runs locally and can be used for free with Ollama or your own API key. To start:

pip install thread-notebook

To start thread, run any of the following commands:

thread-notebook

or

thread

or

jupyter thread-notebook

Key features

1. Familiar Jupyter Notebook editing experience

SameEditorExperience

2. Natural language code edits

CellEditing

3. Generate cells to answer natural language questions

ThreadGenerateMode

4. Ask questions in a context aware chat sidebar

ThreadChatDemo480

5. Automatically explain or fix errors

image

Demo

https://github.com/alishobeiri/thread/assets/18422723/b0ef0d7d-bae5-48ad-b293-217b940385fb

ThreadIntro

Development instructions

To run the repo in development mode, you need to run two terminal commands. One will run Jupyter Server, the other will run the NextJS front end.

To begin, run:

yarn install

Then in one terminal, run:

sh ./run_dev.sh

And in another, run:

yarn dev

Navigate to localhost:3000/thread and you should see your local version of Thread running.

If you would like to develop with the AI features, navigate to the proxy folder and run:

yarn install

Then:

yarn dev --port 5001

Using Thread with Ollama

You can use Ollama for a fully offline AI experience. To begin, install and run thread using the commands above.

Once you have run thread, in the bottom left, select the Settings icon:

image

Next, select the Model Settings setting:

image

This is what you will see:

image

Navigate to Ollama and enter your model details:

image

Use Ctrl / Cmd + K and try running a query to see how it looks!

Metadata

Release files for thread-notebook 0.1.36

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

Source distribution (sdist)

Source distribution for thread-notebook 0.1.36
File Size Uploaded
thread_notebook-0.1.36.tar.gz 9.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for thread-notebook 0.1.36
File Interpreter ABI Platform
thread_notebook-0.1.36-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 MB

Release files / thread_notebook-0.1.36.tar.gz

Download URL thread_notebook-0.1.36.tar.gz
Size 9.6 MB
Tags Source
SHA-256 checksum
How to use checksums
d984f1642372b31501c8f83d611b7e48dd271a712cc537285380d58cc06cc8c3
BLAKE2b-256 checksum
How to use checksums
d254351289a0d67a8dc0ad2ea897bab81dd7dcfd7208a9afa365dde624d2e5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.19

Release files / thread_notebook-0.1.36-py3-none-any.whl

Download URL thread_notebook-0.1.36-py3-none-any.whl
Size 9.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
28d7be44f78fe9e4e7d47112f9f01875b88a6c48de352140f1f66d9428430092
BLAKE2b-256 checksum
How to use checksums
8a844f73b469e98e23d6284d8ec3163701407302cd691de8e68a463f6c3b786c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.1.36 This release

2 release files

0.1.35

2 release files

0.1.34

2 release files

0.1.33

2 release files

0.1.32

2 release files

0.1.31

2 release files

0.1.30

2 release files

0.1.28

2 release files

0.1.27

2 release files

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