Terminal setup
jOtter relies on two terminal features. The first is required, the second makes it nicer:
- Graphics. Plots and equations render as images, so jOtter needs a terminal with an image protocol. In a terminal without one it prints an error and doesn’t start.
- The kitty keyboard protocol. Most terminals send the same bytes for Enter, Shift+Enter and Ctrl+Enter. With this protocol jOtter can tell them apart, so Shift+Enter runs a cell like in JupyterLab.
jOtter detects both when it starts and needs no configuration. See the terminal compatibility table for details on each terminal.
Recommended: kitty
Section titled “Recommended: kitty”kitty supports both, which makes it the best-supported terminal. Images are sharp, scrolling doesn’t flicker, and every key combination is distinct.
Other terminals
Section titled “Other terminals”Images: jOtter uses the best protocol your terminal offers: kitty graphics, then sixel, then the iTerm2 protocol. Ghostty uses kitty graphics, foot uses sixel and WezTerm the iTerm2 protocol; all of them show sharp images. xterm does sixel when started as a VT340 (xterm -ti vt340). macOS Terminal.app, Alacritty and GNOME Terminal have no image protocol, and Konsole’s sixel and kitty implementations are incomplete in ways jOtter’s image library can’t use, so these four are not supported.
Keys: kitty, Ghostty and foot speak the kitty keyboard protocol. WezTerm does with enable_kitty_keyboard = true in its config. xterm doesn’t. Without it, use these instead:
| Instead of | Use |
|---|---|
| Shift+Enter (run and advance) | r in notebook mode |
| Ctrl+Enter (run in place) | Space in notebook mode |
Both work in every terminal. To run a cell you are editing, press Esc first.
Inside tmux, images need passthrough enabled. Add this to ~/.tmux.conf and restart tmux:
set -g allow-passthrough ontmux doesn’t forward the kitty keyboard protocol, so use r and Space to run cells there.
Colours and fonts
Section titled “Colours and fonts”jOtter uses the terminal’s colours for its interface and a syntax theme for code. The default theme is dark; on a light terminal background, set theme = "base16-ocean.light" in your config.
Images are sized in terminal cells, so they follow your font size. If you zoom the terminal, jOtter re-renders every cell for the new size.