Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

NBTui

demo

An interactive viewer for Jupyter notebooks from the command line.

It should work for any terminal, but you will only be able to view plots when using Kitty, or any terminal that implements the Kitty graphics protocol.

This is a work in progress, and things may break. Bug reports and general constructive criticism about implementation details are welcome.

Install

pip install nbtui

nbtui {NOTEBOOK}.ipynb

Or, you can directly pull this folder from master (this is recommended, since there are most likely still going to be some issues):

python -m nbtui {NOTEBOOK}.ipynb

Features

  • Vim-style keybindings for scrolling and movement
  • Regex searching
  • View images and plots
  • Automatic file-change detection and refresh (somewhat experimental)

Usage

Movement and scrolling is based on vim keybindings - j to scroll down, k to scroll up, C-D to scroll down by 15 lines, C-U to scroll up by 15 lines. Press g and G to go to the beginning and end of the notebook, respectively, press / to start searching, and press q to close.

NOTE: currently, displaying images is done in a quite inefficient way. I plan to update this logic soon to take advantage of new features from the Kitty graphics protocol, once Kitty version 0.19.3 has been out for a little while longer.

In the meantime, prefer using C-D and C-U to scrolling when many images are on the screen, to avoid large slowdowns.

Planned features

For obvious reasons, rich output formats like HTML, PDF, Javascript, videos, audio, and hyperlinks are not planned to be implemented.

  • Support other display data formats
    • Plot backends besides just png
    • Latex in markdown cells
    • Linking of images (JPEG, SVG)
    • Progress bars
  • Better handling of multiple outputs for a single cell. We should show these things in a single large output cell instead of breaking it up.
  • Better configurability. Users should be able to configure things like themes for syntax highlighting, padding, etc.
  • Fix slow scrolling with images by utilizing Kitty placement ids
  • Folding

Metadata

Release files for nbtui 0.0.3

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

Source distribution (sdist)

Source distribution for nbtui 0.0.3
File Size Uploaded Provenance
nbtui-0.0.3.tar.gz 11.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 24.3 kB

Release files / nbtui-0.0.3.tar.gz

Download URL nbtui-0.0.3.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6fb3a698a10dafef9fafb14a9d128af771a02447a4c2fc73f90888946f65fc24
BLAKE2b-256 checksum
How to use checksums
83f494df321b75a28f28c03aa83f48dbc9f0a4eb0743968559683526b5867fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / nbtui-0.0.3-py3-none-any.whl

Download URL nbtui-0.0.3-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e825264cbb2ad69df16d9fc414cce55f24b8a2b709f2f7ac487ebb663d0078f
BLAKE2b-256 checksum
How to use checksums
0d6d186fe1896a89130ae15c4c4bcc0ddc35a9c1fe05dd28bd53ad69a35280fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Security for nbtui 0.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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