Skip to content

gpynb 0.1.2

Choose a tag to compare

@github-actions github-actions released this 31 Oct 03:30
· 61 commits to main since this release

Added

  • Matplotlib figures and other PNG outputs draw as direct kitty graphics placements
    (kitty, Ghostty, Rex, WezTerm, Konsole); textual_image's Sixel widget where the terminal
    has Sixel, and a card with View and Download buttons where it has no graphics at all.
  • v in cell mode (and :img [N]) views a cell's image full screen: zoom, pan, s saves
    it as PNG next to the notebook, o opens it in the browser; :img save [N|all] [file]
    and :img open [N|all].
  • Markdown cells draw ![alt](url-or-path) pictures in place, and [text](x.png) links to
    pictures too: http(s) and data URLs, or paths relative to the notebook, fetched in the
    background and cached under ~/.cache/gpython/images. Animated GIFs play. The cell's
    pictures are part of v / :img.
  • Vim: . repeat, counted inserts, ~ g~ gu gU, R, > < = with motions and
    text objects, marks, registers, macros, ctrl+a / ctrl+x, more motions.
  • Running a cell that imports a missing module offers to install it (pip or uv, like marimo).
  • t in cell mode shows each cell's run time in its header (saved as timing in the config);
    r t [n] times a cell over n runs and prints mean, median, std, variance, p50/p90/p99,
    min and max.
  • ctrl+h / ctrl+l move between the explorer and the notebook.
  • :wq!, :x!, :w!, :wqa!, :xa! and :exit are accepted as their unforced forms.
  • GPYTHON_TTY_LOG=file records every byte sent to the terminal, so a session can be
    replayed with cat; scripts/kitty_probe.py checks a terminal's graphics support.
  • CI runs the tests on every push to main and on pull requests.

Fixed

  • A notebook whose folder does not exist still gets a kernel: it starts in the current folder.
  • Only the focused editor paints a cursor.