Skip to main content

pnb

Screenshot

More screenshots

Introduction

Pnb is an interactive environment for Python programming inspired by the notebook concept of Mathematica and Jupyter. Notebooks offer a nice way to develop and document Python code while organizing ideas.

Unlike heavier applications like Jupyter or Spyder, pnb is exceptionally lightweight and easy to install. It has only two dependencies: wxPython and pynotebook, which itself only needs the small pure-Python package cerealizer to read files of older versions.

Features

  • Code cells: run with Shift+Return, the output appears right below
  • Syntax highlighting, completion (Tab) and help on the word at the cursor (Ctrl-H)
  • Text cells with formatted text for notes and documentation
  • Plots via matplotlib and built-in vector graphics, right in the document
  • Safe, readable file format: notebooks are saved as JSON, and opening a file never runs code
  • BSD license

Quick start

Start pnb, type some Python code and press Shift+Return:

Key Action
Shift+Return Execute the cell
Tab Complete
Ctrl-H Help on the word at the cursor
Ctrl-T Insert a text cell
Ctrl-B Split the cell at the cursor
Ctrl-I / Ctrl-U Indent / dedent

Examples: demo/*.pnb in the sources; the Linux packages install them to /usr/share/pnb/examples/.

Installation

Linux (Debian, Ubuntu, Fedora, ...): download the .deb or .rpm from the Releases page and install it, e.g.:

sudo apt install ./pnb_*_all.deb
sudo dnf install ./pnb-*.noarch.rpm

The packages use the wxPython of the distribution and add pnb to the application menu.

With pip and the wxPython of your Linux distribution (4.2 or newer):

sudo apt install python3-wxgtk4.0      # or: sudo dnf install python3-wxpython4
python3 -m venv --system-site-packages ~/pnb-env
~/pnb-env/bin/pip install pnb

With pip including wxPython (Windows, macOS; on Linux, pip has to build wxPython from source):

pip install "pnb[wx]"

From the source folder:

pip install .

Desktop integration after a pip installation (pnb must be on the PATH):

mkdir -p ~/.local/share/applications ~/.local/share/icons/hicolor/96x96/apps
cp pnb.desktop ~/.local/share/applications/
cp pnb.png ~/.local/share/icons/hicolor/96x96/apps/

Run without installing

In this folder:

python runtests.py pnb

Metadata

Release files for pnb 0.4.1

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

Source distribution (sdist)

Source distribution for pnb 0.4.1
File Size Uploaded Provenance Actions
pnb-0.4.1.tar.gz 11.8 kB With provenance Details for pnb-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 24.6 kB

Release files / pnb-0.4.1.tar.gz

Download URL pnb-0.4.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
78d8093d8a5702f2e9a88bfc8391a49d9e9bbae9b231eff8c827c6db3344fb02
BLAKE2b-256 checksum
How to use checksums
28a7cd5c276bc0ffc508b784e029fa084711869826fcc120e2ea74c3234562d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / pnb-0.4.1-py3-none-any.whl

Download URL pnb-0.4.1-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec45b53123b7a39b7698416d59acfea5d59c74627f9e763fc6dbcca694593248
BLAKE2b-256 checksum
How to use checksums
6e82f05f25c1b88587ab68bea24904b6fe46f9ba2487d061725a48595adcf1cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Security for pnb 0.4.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pnb-0.4.1.tar.gz

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 Nov 14, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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