Skip to main content

Build Status

jpterm

Jpterm is the successor of nbterm.

It aims to be the equivalent of JupyterLab in the terminal, using the Anytext framework.

At startup, jpterm enables Anytext’s Textual import alias so existing Textual plugins share the same app and widget classes.

For more details, see the documentation.

CLI

The CLI uses Cyclopts. Run jpterm without a subcommand to open the TUI, or use:

jpterm show notebook.ipynb
jpterm show notebook.ipynb --cell CELL_ID --json
jpterm write notes.txt --source 'hello'
jpterm execute notebook.ipynb --kernel python3
jpterm kernel list
jpterm --server http://localhost:8000 show notebook.ipynb

Global options include --server, --backend, --collaborative, --experimental, and repeatable --set KEY=VALUE. Each command has --help. The same command tree is used when running inside Anyshell.

Anyshell integration

Install the optional Anyshell integration to register jpterm’s document commands and interactive interface. From this checkout:

uv run --extra anyshell anyshell

Enter jpterm to open the full TUI in the current pane. Press Ctrl+Q to return to the shell (q also works from the launcher); Ctrl+W closes the current document tab. You can also use jpterm show PATH, jpterm write PATH --source TEXT, or jpterm execute NOTEBOOK. Text can also be piped into jpterm write PATH --stdin. --cell CELL_ID selects a notebook cell, and --kernel NAME selects an execution kernel. Paths follow the shell pane's working directory within its local workspace. Global options such as --server and --set work in both hosts. Local commands require a local filesystem; remote paths refer to the server.

Direct terminal output uses jpterm's highlighted editor layout. Pipes, redirections, and Python assignments receive raw text lines or notebook/cell dictionaries. Notebook execution may start a Jupyter kernel process; the adapter itself runs in-process. It requires Anyshell 0.6.0 or newer for external command plugins, interactive views, and stdout.is_terminal.

The command definitions live in a shared Cyclopts tree in jpterm.cli. The small jpterm.anyshell adapter registers that same tree through the anyshell.commands entry-point group; there is no second set of command options. Custom hosts can call jpterm.anyshell.register(session) directly.

Embeddable interface

txl_jpterm.main.JptermView contains the header, file browser, tabbed main area, and footer. The standalone Jpterm app is a host for this widget. View actions and CSS belong to the widget, so separate instances keep their focus, tabs, and browser visibility independent.

A host supplies components from the jpterm services and mounts the view:

from txl_jpterm.main import JptermView

view = JptermView(header, footer, main_area)
view.start(launcher, file_browser)
await host.mount(view)
await view.closed.wait()
await view.remove()

The host owns the plugin services for the lifetime of the view. q signals JptermView.Closed and sets view.closed; it does not exit the host app. Standalone jpterm handles that message by exiting. Anyshell hosts this same widget in a pane and owns its services for that visit. jpterm.view.open_view reuses the host app and terminal driver; it starts no second application loop. Closing or interrupting the view stops its service graph.

Metadata

Release files for jpterm 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 jpterm 0.4.0
File Size Uploaded Provenance Actions
jpterm-0.4.0.tar.gz 11.7 kB With provenance Details for jpterm-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 26.6 kB

Release files / jpterm-0.4.0.tar.gz

Download URL jpterm-0.4.0.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
58172de235047f3aa75c4159b2801bf565984e5b9578dc8efaee0f233c895c68
BLAKE2b-256 checksum
How to use checksums
d4659c8779b4a683b28fe8c878a24fa552f7fe15e5d8f390d4d5b7ce76bd0357
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 22, 2026.

Transparency log

Release files / jpterm-0.4.0-py3-none-any.whl

Download URL jpterm-0.4.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
234d518c53ef43a0e1c4ac9537e37ebe79fe228613620b9b4c95971c2bfcf213
BLAKE2b-256 checksum
How to use checksums
2ed5bb66aac24257e5d4244f0bc33364aab92de20b8f17e86182441c9ce5daf3
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 22, 2026.

Transparency log

Security for jpterm 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 jpterm-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 22, 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