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: Help → Demos (pnb/examples/*.pnb in the sources, installed with the package).

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

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

Built distribution (wheel)

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

Total release size: 713.4 kB

Release files / pnb-0.4.2.tar.gz

Download URL pnb-0.4.2.tar.gz
Size 355.7 kB
Tags Source
SHA-256 checksum
How to use checksums
281bc4a80c354974fa6c11696b7f9de850c8a8af41e4814e925bf0113f084fa1
BLAKE2b-256 checksum
How to use checksums
85add928e12735999314d9a4447896cfa60156c5dbaa6a42062c8890fc6d6fef
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 16, 2026.

Transparency log

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

Download URL pnb-0.4.2-py3-none-any.whl
Size 357.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8b1566e3cdb400bbafefafd4f54ddbf02b3315d603a9ac49607d119c910b952
BLAKE2b-256 checksum
How to use checksums
58754487b96f7f81610b93a7be43eab0eec5bfa4c68368a92fbf8f169426dbc0
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 16, 2026.

Transparency log

Security for pnb 0.4.2

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.2.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 16, 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