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.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 pnb 0.4.0
File Size Uploaded Provenance Actions
pnb-0.4.0.tar.gz 11.8 kB With provenance Details for pnb-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.6 kB

Release files / pnb-0.4.0.tar.gz

Download URL pnb-0.4.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1ea7b7d4544e1b6e7a1723a3f1ebd7e49db2a7d498039ec599636347fdda5cc5
BLAKE2b-256 checksum
How to use checksums
80991124e871ac8644f6b0815a4b172b13d816b5f1f2ce4735517aba065c7338
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.0-py3-none-any.whl

Download URL pnb-0.4.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66ada1d7cf4bb161d62ce4a45232d798749fdd0db67975ab238ce5b94ea97d7c
BLAKE2b-256 checksum
How to use checksums
45475a6332215072bd5f599f6c456e2645c8d0135ca58ee08e9f7974833707de
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.0

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.0.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