Turning Jupyter notebooks into LLM-useable context
Project description
nbs2ctx
Usage
nbs2ctx is a minimal CLI for turning a directory of notebooks (e.g. an NBDev project) into context for an LLM. For example, from the root dir of this github repo we could run:
nbs_to_ctx nbs ctx.xml
This will create a file ctx.xml with the contents of all the notebooks in the nbs folder.
<documents>
<document index="1">
<source>00_core.ipynb</source>
<document_content>
# nbs_to_ctx
> Turning Jupyter notebooks into LLM-ready context
```python
#| default_exp core
... and so on, with the full contents of the notebook
Installation
Install latest from the GitHub repository:
$ pip install git+https://github.com/AnswerDotAI/nbs2ctx.git
or from pypi
$ pip install nbs2ctx
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nbs2ctx-0.0.1.tar.gz.
File metadata
- Download URL: nbs2ctx-0.0.1.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b3d2ee64f3239fcbb5dfaa200bc09ce118a2c1addf7810075db44477556e66c
|
|
| MD5 |
11d51581c4b566687737585d93fd059c
|
|
| BLAKE2b-256 |
ef0aade6fc33dcb76a3a4c7d5dd104d2db4f9847895d5a72078db76ab6fa2760
|
File details
Details for the file nbs2ctx-0.0.1-py3-none-any.whl.
File metadata
- Download URL: nbs2ctx-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6e73187b545f42f69e7e3769eda655394a940996c83a4a369f5df9c96b8cfb0
|
|
| MD5 |
2142bf0c6f53814be73befd42e6e2cd3
|
|
| BLAKE2b-256 |
801a4508cceebf8564945f23289312d762fbe3e0b7f2a5bdc365e26a60970cb5
|