Skip to main content

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

&gt; 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

Release files for nbs2ctx 0.0.2

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

Source distribution (sdist)

Source distribution for nbs2ctx 0.0.2
File Size Uploaded
nbs2ctx-0.0.2.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nbs2ctx 0.0.2
File Interpreter ABI Platform
nbs2ctx-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / nbs2ctx-0.0.2.tar.gz

Download URL nbs2ctx-0.0.2.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cd8e884a95874fb13c7c3b5e92be91bd4125253141b0480f1d9d22d2b0e343fb
BLAKE2b-256 checksum
How to use checksums
235056aa6a0752ad41fc5e811f8cb1c0530fe36f2c2bdcbadeafb0ae09b87026
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / nbs2ctx-0.0.2-py3-none-any.whl

Download URL nbs2ctx-0.0.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e0982fee401fe2ebe0cb17229cfae16dc408cabdb8cf6f34ab2a29d84c269d3
BLAKE2b-256 checksum
How to use checksums
d9a17c7b11b5aac74b8711dce197037c75ec152ea9a265731e6cc61c41616832
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

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