Rich/Textual terminal viewer for Jupyter notebooks focused on copying code and text outputs
Project description
nbsee
Simple CLI viewer for Jupyter notebooks focused on fast reading and easy copying of code and text outputs from the terminal.
Status: planning/design. See docs/TODO.md for the working task list.
Goals (MVP)
- Interactive terminal viewer for
.ipynb. - Navigate cells with keys; focus input vs output.
- Code cells: show source and text/plain outputs only.
- Easy copying from the viewer using the keyboard (xclip).
- Ignore images/HTML-rich outputs for now.
Quick Concept (not implemented yet)
nbsee notebook.ipynb— open an interactive viewer.
Key bindings (proposed)
j/k: move to next/previous cell- Arrow Up/Down: scroll the view line-by-line
- PageUp/PageDown: page scroll
- Ctrl+u / Ctrl+d: half-page scroll up/down
Tab: toggle focus between input (code/markdown) and output (text/plain)- If a cell has no text output,
Tabdoes nothing and shows a brief message. y: copy the currently focused region to clipboard usingxclip -selection clipboardz: hide/show all outputs (fold outputs)Shift+V: start/stop visual selection for inputs; usej/kto expand/shrink;ycopies all selected code cells/: search (inputs+outputs). Enter to submit,Esccancelsn/N: next/prev matchgg/G: jump to first / last cellG/gg: jump to last/first cell (optional)q: quit
Notes
- Copying uses Linux X11 clipboard via
xclip. Wayland/macOS not targeted in MVP. - When an output is not available (e.g., no text/plain), copy will show an inline message.
- Python syntax highlighting is built-in via Rich.
Install (PyPI)
python -m pip install nbsee- Run:
nbsee path/to/notebook.ipynb
Development (uv)
- Quick run without installing:
uv run -m nbsee path/to/notebook.ipynb - Run tests:
uv run pytest - Lint/format check:
uv run ruff check .anduv run ruff format --check . - Build distributions:
uv build - Release: push a tag like
v0.1.0to trigger.github/workflows/publish.yml(requires PyPI trusted publishing setup). - Install editable and use
nbseecommand:- Create venv:
uv venv - Activate:
source .venv/bin/activate - Install:
uv pip install -e . - Run:
nbsee path/to/notebook.ipynb
- Create venv:
- Clipboard requirement:
xclipon Linux/X11 must be installed and available inPATH.
Docs
- Design:
docs/DESIGN.md - TODOs & roadmap:
docs/TODO.md
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 nbsee-0.1.0.tar.gz.
File metadata
- Download URL: nbsee-0.1.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6db73b64ab54127835afe928abeaa99e7d97467b385a531fa37982984d5281d5
|
|
| MD5 |
cf1e37d3d85c18fbbd97ef748aebe17a
|
|
| BLAKE2b-256 |
2bb1fb4b7178083005f830be6022825c3ec6662068c6f07f8259c3a98b029119
|
Provenance
The following attestation bundles were made for nbsee-0.1.0.tar.gz:
Publisher:
publish.yml on AnakTeka/nbsee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nbsee-0.1.0.tar.gz -
Subject digest:
6db73b64ab54127835afe928abeaa99e7d97467b385a531fa37982984d5281d5 - Sigstore transparency entry: 814287354
- Sigstore integration time:
-
Permalink:
AnakTeka/nbsee@94bae944a7ed60bebac2dccaae44444f7d2248a4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/AnakTeka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@94bae944a7ed60bebac2dccaae44444f7d2248a4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nbsee-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nbsee-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14d628d648abe6d62f96b1777578d92239ca14965455f99ffa6639c0dc5cf5c1
|
|
| MD5 |
fcf4497a04aacaf7da7fba0715a1b8bb
|
|
| BLAKE2b-256 |
61e2cfd1318862e2b86c3687c4cd4dbcbf2f2517352103b49a1b191edf031365
|
Provenance
The following attestation bundles were made for nbsee-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on AnakTeka/nbsee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nbsee-0.1.0-py3-none-any.whl -
Subject digest:
14d628d648abe6d62f96b1777578d92239ca14965455f99ffa6639c0dc5cf5c1 - Sigstore transparency entry: 814287359
- Sigstore integration time:
-
Permalink:
AnakTeka/nbsee@94bae944a7ed60bebac2dccaae44444f7d2248a4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/AnakTeka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@94bae944a7ed60bebac2dccaae44444f7d2248a4 -
Trigger Event:
push
-
Statement type: