cat for jupyter notebooks
Project description
nbcat
nbcat let you preview Jupyter notebooks directly in your terminal. Think of it as cat, but for .ipynb files.
Features
- Very fast and lightweight with minimal dependencies.
- Preview remote notebooks without downloading them.
- Enable paginated view mode with keyboard navigation (similar to
less). - Supports image rendering (some protocols in beta)
- Supports for all Jupyter notebook versions, including old legacy formats.
Motivation
The idea of previewing notebooks in a terminal is not new - there have been many previous attempts to achieve it.
However, most are either slow and overengineered with a ton of half-working features, or they're outdated and incompatible with modern Python.
I was looking for a simple tool that let me quickly render Jupyter notebooks without switching context from my terminal window or installing a ton of dependencies.
Please note, that nbcat doesn't aim to replace JupyterLab. If you need a full-featured terminal experience, I recommend checking out euporie instead.
Installation
# Install from PyPI
pip install nbcat
# Install via Homebrew
brew tab akopdev/formulas/nbcat
brew install nbcat
Quickstart
$ nbcat notebook.ipynb
You can pass URLs as well.
$ nbcat https://raw.githubusercontent.com/akopdev/nbcat/refs/heads/main/tests/assets/test4.ipynb
Example use case with fzf command that lists all .ipynb files and uses nbcat for previewing them:
find . -type f -name "*.ipynb" | fzf --preview 'nbcat {}'
Testing & Development
Run the tests:
make test
Check code quality:
make format lint
Contributing
Contributions are welcome! Please open an issue or pull request.
License
Distributed under the MIT License. See LICENSE for more information.
Useful Links
- 📘 Documentation: coming soon
- 🐛 Issues: GitHub Issues
- 🚀 Releases: GitHub Releases
Made with ❤️ by Akop Kesheshyan
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 nbcat-0.13.2.tar.gz.
File metadata
- Download URL: nbcat-0.13.2.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11ae1ee3309f96d8fde8838f1cb6998f096d8ac542a4f4a0491243161615e990
|
|
| MD5 |
35ca1664a306d4ac00d6995e20e3abc9
|
|
| BLAKE2b-256 |
025a44b8792b83861e5c6d1b387840118a23dfe32ff3356a8d8289ffbb8fa4c5
|
Provenance
The following attestation bundles were made for nbcat-0.13.2.tar.gz:
Publisher:
ci.yml on akopdev/nbcat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nbcat-0.13.2.tar.gz -
Subject digest:
11ae1ee3309f96d8fde8838f1cb6998f096d8ac542a4f4a0491243161615e990 - Sigstore transparency entry: 211501130
- Sigstore integration time:
-
Permalink:
akopdev/nbcat@758fd429a40dd3ae379a41cd38547ec3bd7b17b1 -
Branch / Tag:
refs/tags/v0.13.2 - Owner: https://github.com/akopdev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@758fd429a40dd3ae379a41cd38547ec3bd7b17b1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nbcat-0.13.2-py3-none-any.whl.
File metadata
- Download URL: nbcat-0.13.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
110a2c1ceb380f462df9f3ff68732f80cbae4f926320e26cbdb5fe6c0d980f9e
|
|
| MD5 |
a7bff97762adca4d75d1c38bd10a2b47
|
|
| BLAKE2b-256 |
1e397f44346c615e5c04b934f90e9e20fd6062ef6ab41f7a9e5d90475566bc34
|
Provenance
The following attestation bundles were made for nbcat-0.13.2-py3-none-any.whl:
Publisher:
ci.yml on akopdev/nbcat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nbcat-0.13.2-py3-none-any.whl -
Subject digest:
110a2c1ceb380f462df9f3ff68732f80cbae4f926320e26cbdb5fe6c0d980f9e - Sigstore transparency entry: 211501134
- Sigstore integration time:
-
Permalink:
akopdev/nbcat@758fd429a40dd3ae379a41cd38547ec3bd7b17b1 -
Branch / Tag:
refs/tags/v0.13.2 - Owner: https://github.com/akopdev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@758fd429a40dd3ae379a41cd38547ec3bd7b17b1 -
Trigger Event:
push
-
Statement type: