Skip to main content

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

&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

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

nbs2ctx-0.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

nbs2ctx-0.0.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file nbs2ctx-0.0.2.tar.gz.

File metadata

  • Download URL: nbs2ctx-0.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for nbs2ctx-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cd8e884a95874fb13c7c3b5e92be91bd4125253141b0480f1d9d22d2b0e343fb
MD5 7ef4d023d606ce1d818b980fb41e5044
BLAKE2b-256 235056aa6a0752ad41fc5e811f8cb1c0530fe36f2c2bdcbadeafb0ae09b87026

See more details on using hashes here.

File details

Details for the file nbs2ctx-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nbs2ctx-0.0.2-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.8

File hashes

Hashes for nbs2ctx-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2e0982fee401fe2ebe0cb17229cfae16dc408cabdb8cf6f34ab2a29d84c269d3
MD5 0630abc7f502a7a4abafad79cb5932f2
BLAKE2b-256 d9a17c7b11b5aac74b8711dce197037c75ec152ea9a265731e6cc61c41616832

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