Skip to main content

No project description provided

Project description

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!

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

thread_notebook-0.1.35.tar.gz (9.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thread_notebook-0.1.35-py3-none-any.whl (9.7 MB view details)

Uploaded Python 3

File details

Details for the file thread_notebook-0.1.35.tar.gz.

File metadata

  • Download URL: thread_notebook-0.1.35.tar.gz
  • Upload date:
  • Size: 9.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.19

File hashes

Hashes for thread_notebook-0.1.35.tar.gz
Algorithm Hash digest
SHA256 c5e36dc7a3d9b3b42cd977685b8a2de6b89f8c931a7554fdf7c6a3d29335adf9
MD5 b70fa6d9397898f3aca48649a4915460
BLAKE2b-256 448e336c72b54b7f35faed4c36d146069b37dd34ffc28b8685e3ee8ff5ca21da

See more details on using hashes here.

File details

Details for the file thread_notebook-0.1.35-py3-none-any.whl.

File metadata

File hashes

Hashes for thread_notebook-0.1.35-py3-none-any.whl
Algorithm Hash digest
SHA256 718605aa10c103155ce32b8e1f55d95e965b828f2922896a5d63b9c944939e31
MD5 0c3dbc3f57be228a82d1c8b9c85a7e63
BLAKE2b-256 1a12396fd2754157c258c1761d2ba83619a3d4b3d438c99c8d5c595a087839b6

See more details on using hashes here.

Supported by

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