Skip to main content

pnbp = "pretty notebook parser"

0.9.0: The published package supports the Python library and pnbp command-line interface on Python 3.11 or newer. Install it with python -m pip install pnbp==0.9.0. See the release notes for migration and support details.


pnbp provides programmatic access to a notebook via :

  • > pnbp/models : models and methods.
    • access notes and their individual (regex established) components in the python repl, scripts, and your own shell commands.
  • > pnbp/commands : shell commands.
    • run pre-defined function against a notebook in the terminal directly, or, scheduled.

---

a pretty notebook is the collection of markdown files in a specific directory. a pretty note is a single .md file within the notebook directory.

links ( [[link]] , ![[link.jpg]] ), tags ( #tag ), codeblocks ( ```py print("Hello World")``` ), and urls ( [goog](https://google.com) ) are the main components outside of additional render syntax of a .md note using an extended linking and tagging markdown.

https://obsidian.md/ is the best example of this in action.


quickstart guide :


(0) -> update pip, then install the exact release
python -m pip install --upgrade pip
python -m pip install pnbp==0.9.0
(1) -> access via the Notebook model
(2) -> cli commands
(3) -> web application / api (supported only in the documented single-worker, single-notebook topology; not included in the pnbp wheel)
(4) -> “pnano” (experimental/unsupported in 0.9.0)

(-1) -> git clone the repo.
git clone https://github.com/outside-labs/Pretty-Notebook/ pnbp
cd pnbp/
python -m pip install --editable . # development checkout, including the pnbp CLI

(2) -> set environment variables.
var desc e.g.
NOTE_PATH the full directory path of your notebook echo 'export NOTE_PATH="/users/alice/notebook"' >> ~/.zshrc
IMG_PATH (optional entirely; set here or in pnbp_settings.json) echo 'export IMG_PATH="$NOTE_PATH/imgs"' >> ~/.zshrc
HTML_PATH (optional entirely; useful debug w/ Pretty-Notebook/apps/web api; set here, in pnbp_settings.json, or not at all.) echo 'export HTML_PATH="$NOTE_PATH/html"' >> ~/.zshrc
NOTE_NESTED (optional; default="flat") => "single", "recurs", "all", ...
PNBP_SETTINGS (optional) => "off" to ignore using a NOTE_PATH/pnbp_settings.json echo 'export PNBP_SETTINGS="off"' >> ~/.zshrc

NOTE_NESTED

  • "flat" - by default, pnbp assumes that every .md note exist within the base directory level of NOTE_PATH/.
  • "single" - if you want pnbp to search for .md notes within additional (non-hidden) directory level up.
  • "recurs" - if you want .md notes to be found through all (non-hidden) directory levels up.
  • "all" - if you want even hidden (non- .git, .obsidian) directories traversed recursively up.

PNBP_SETTINGS

  • without PNBP_SETTINGS="off", "NOTE_PATH/pnbp_settings.json" will be nagged for.
  • Notebook can generate one at the python prompt that you can edit later ->

( ... on Windows? Environment Variable(s) can be set here. Also, recall that in most places you'll also need to escape the "\" within any path strings (e.g. "IMG_PATH": "\\Users\\alice\\notebook\\imgs") used; the drive letter (e.g. "D:\\Media\imgs") is optional if it's your %HOMEDRIVE%. )


(3) -> access your notes in python3.11+ !
>>> import pnbp
>>> nb = pnbp.Notebook()
... 

Pretty-Notebook

Metadata

Release files for pnbp 0.9.0

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

Source distribution (sdist)

Source distribution for pnbp 0.9.0
File Size Uploaded
pnbp-0.9.0.tar.gz 51.4 kB Details

Built distribution (wheel)

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

Total release size: 95.5 kB

Release files / pnbp-0.9.0.tar.gz

Download URL pnbp-0.9.0.tar.gz
Size 51.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fda21b923a6ba4402387bb9cdc0a417c798d90809c94925cd02e477fb5ec9c03
BLAKE2b-256 checksum
How to use checksums
dcfd7748e53e4dc9448d409a46d66e06606e4daf61136980e147b6fb65ba42d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / pnbp-0.9.0-py3-none-any.whl

Download URL pnbp-0.9.0-py3-none-any.whl
Size 44.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99966b46117737f4778ae3332cb3a5c382507b0282e769ab803bb979df8910f2
BLAKE2b-256 checksum
How to use checksums
bc0fb20b2ca556c358deb0b5ef10f951065b5182437c4eae3fdc558acf4b63a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.10.0

2 release files

This release

0.9.0 This release

2 release files

0.8.6

1 release file

0.8.5

1 release file

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