juxt
juxt is a fast desktop tool for visually comparing plots across multiple parameter axes. Define axes (model, date, data source, ...) and flip through the resulting image hypercube with keyboard navigation.
juxt comes from juxtapose — placing things side by side to compare. That's the whole idea: flip through congruent plots fast enough to visually identify differences.
Install
pip install juxt
For SSH remote loading:
pip install juxt[ssh]
Quick start
juxt accepts several forms as its first argument:
juxt /path/to/plots/ # auto-detect axes from a directory of images
juxt plots/{sensor}_{date}.png # explicit local template
juxt "plots/*.png" # wildcard match, recursing into subdirs
juxt myhost:/path/to/plots/ # remote directory over SSH
juxt myhost:/path/{sensor}_{date}.png # remote template over SSH
juxt config.yaml # explicit config file
A * in the path is matched recursively (unlike a shell glob, it reaches into nested subdirectories), and the matched files are split into axes the same way directory auto-detection is. Combine it with --NAME VALUE ... to pin a {placeholder} to a fixed set of directories and aggregate congruent files found under each:
juxt "{root}/*.png" --root run1 run2 # pool plots/*.png-style files found under run1/ and run2/
If you'd rather have one named axis for an arbitrarily deep (and possibly differently-shaped) subtree, instead of it being auto-split into several anonymous axes, write {**name} in place of a regular placeholder. It captures across /, and any leading path segments shared by every match are pruned out of the axis value and folded into the template as fixed text, so dir/AM/plot.png and dir/PM/plot.png become axis values AM/plot and PM/plot rather than the full dir/AM/plot:
juxt "{root}/{**plot}.png" --root run1 run2 # one 'plot' axis per run, however deep it's nested
{**name} is limited to one per template (two independent /-crossing captures in one path would be ambiguous), and pass --full-path to see the whole matched path instead of the pruned suffix.
For directory and remote-directory modes, filenames are split on separators (_ and / by default) and any position with more than one distinct value becomes an axis. You'll be prompted to name the axes on first run; use -a to skip.
Run juxt with no argument and it opens a dialog instead: a Browse tab for picking a directory (auto-discover), and a Build path tab for typing a {placeholder} template by hand, with Tab completing real directories and files along the way.
Config
Auto-discover mode
Point juxt at a directory and it figures out the axes from the filenames:
juxt /path/to/plots/
Or with an explicit config:
discover:
directory: plots/
separator: "_"
Template mode
For full control, define the template and axes explicitly:
template: "plots/{sensor}_{date}_{overpass}_{source}.png"
axes:
sensor: [ASCAT, SMAP, SMOS]
date: [2024-03-15, 2024-03-16]
overpass: [AM, PM]
source: [L2, L3]
keys:
s: sensor
d: date
o: overpass
r: source
Remote mode (SSH)
Images are downloaded over SFTP at startup and cached locally; navigation afterwards is identical to local use. Auth uses your SSH agent or ~/.ssh/config key, with a password fallback.
remote: myhost # or user@myhost, or user@myhost:port
template: "/data/plots/{sensor}_{date}.png"
axes:
sensor: [ASCAT, SMAP]
date: [2024-03-15, 2024-03-16]
Or pass the remote path directly on the command line — juxt will detect axes from the remote filenames automatically:
juxt myhost:/data/plots/
Requires the SSH extra: pip install juxt[ssh]
Navigation
Default mode is tap. Each axis is assigned one letter key — tap it to step forward, hold Shift to step backward. Every navigation is a single keypress, no modifiers, no menus.
| Key | Action |
|---|---|
← / → |
cycle the active axis |
↑ / ↓ |
cycle the secondary axis |
| lowercase letter | navigate +1 on that axis |
| uppercase letter | navigate −1 on that axis |
Ctrl+letter |
open value picker for that axis |
(modifiers.swap: true exchanges the Ctrl and Shift roles) |
|
Space |
toggle between current and previous position |
Home / End |
jump to first / last value |
1–9 |
jump to the Nth value |
Use :mode tap|seek|pin in the command bar to switch navigation modes.
Command mode
Press : to open the command bar (vim-style). Tab-completion narrows candidates as you type.
Matching is fuzzy: the characters you type only have to appear in order, so :fh reaches fit-height and smp finds SMAP in the value picker. Candidates are ranked best-first, prefix matches ahead of looser ones. Set seek.fuzzy: false in ~/.juxt/settings.yaml for strict prefix matching.
Path arguments complete with {placeholders} in place: :pattern plots/{sensor}/2⇥ lists what every sensor directory holds, so a template is built top-down instead of completing a concrete path and deleting the parts that should vary. { + Tab completes an existing axis name, and anonymous {} placeholders are numbered automatically.
Shell completion
The same completion works at the shell prompt. Add one line to ~/.bashrc:
eval "$(juxt --bash-completion)"
zsh needs bashcompinit first:
autoload -U bashcompinit && bashcompinit
eval "$(juxt --bash-completion)"
Then juxt "plots/{sensor}/2⇥ completes at the prompt, as do the command-line options. Quote the template as shown if options follow it. An unquoted template runs fine, but bash 5.1 stops completing after an unquoted word with two or more placeholders, so the --NAME pins below would not complete. ble.sh is handled as well, through its own hook. Reload the shell (source ~/.bashrc, or open a new terminal) for it to take effect.
Point JUXT_COMPLETE at juxt-complete if juxt lives in a virtualenv you do not activate:
export JUXT_COMPLETE=~/env/juxt/bin/juxt-complete
Once the template is on the line, the options after it complete too. The placeholders become --NAME pin flags, and a pin's values are looked up on disk, narrowed by the pins already typed:
$ juxt "plots/{sensor}/{model}/{date}.png" --sensor SMOS --model ⇥
dobson mironov park-2019 wang-schmugge # only what exists under SMOS
--axis-h, --axis-v and --grid complete the placeholder names, and --grid-values the values of the --grid axis. The lookup is the scan juxt runs at startup, limited to the placeholder you are on, and gives up after half a second (JUXT_COMPLETE_TIMEOUT=SECONDS to change it) so a slow network share cannot freeze the prompt. Remote templates, directories and YAML configs have nothing to look up, and a pin that finds nothing falls back to completing a path, which is what a --root pointing at unrelated trees needs.
Placeholders standing for a known kind of value complete only as far as that value: plots/{date}⇥ stops at plots/{date}_ rather than swallowing the rest of the filename. The names that count are the ones listed under placeholders: in ~/.juxt/settings.yaml, which juxt seeds with date datetime time year month day doy — edit or delete them, and completion follows. Date-style shorthands such as {yyyy-mm-dd} are recognised on sight, with or without an entry.
| Command | Action |
|---|---|
:q |
quit |
:fit |
fit image to window |
:fit height / :fit width |
fit to height or width |
:fit-off |
stop fitting, keep the current zoom |
:zoom N |
set zoom to N% |
:fullscreen |
toggle fullscreen |
:version |
show the juxt version (juxt --version from the shell) |
:mode tap|seek|pin |
switch navigation mode |
:grid [AXIS] |
tile an axis into a grid of viewports |
:grid AXIS VAL … |
grid with a value subset |
:keys |
toggle the shortcut sidebar (Ctrl+Shift+K) |
:grid-dialog |
open the grid builder dialogue (Ctrl+Shift+G) |
:grid-layout NxM |
change grid layout without exiting |
:grid-off / :ungrid |
return to single-image view |
:grid-sharex / :grid-sharey |
toggle synchronized pan/zoom |
Controls
Zoom
| Key | Action |
|---|---|
| double-click | fit image to window |
0 |
reset zoom to 100% |
| scroll wheel | step forward / backward on active axis |
Shift + scroll wheel |
step backward / forward on active axis |
Ctrl + scroll wheel |
zoom (anchored under cursor) |
| drag | pan |
View
| Key | Action |
|---|---|
Enter |
toggle fullscreen |
Ctrl+Shift+C |
copy the current image path to the clipboard |
| right-click | menu: copy image path / copy image |
Ctrl+Shift+H |
toggle status bar (start hidden with --no-status-bar) |
Ctrl+Shift+I |
toggle info sidebar (start open with --info) |
Ctrl+Shift+K |
toggle shortcut sidebar (start open with --keys) |
Ctrl+C |
copy the text selected in a sidebar (otherwise cancels a command / value picker) |
Ctrl+Shift+G |
open the grid builder dialogue |
Metadata
Release files for juxt 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| juxt-1.5.0.tar.gz | 95.2 kB | With provenance | Details for juxt-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| juxt-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for juxt-1.5.0-py3-none-any.whl |
Total release size: 406.4 kB
Release files / juxt-1.5.0.tar.gz
| Download URL | juxt-1.5.0.tar.gz |
|---|---|
| Size | 95.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a609b6f4af9074962f34be0944897430ba631e3b6e4ca0413393edd909de72a8
|
|
BLAKE2b-256 checksum How to use checksums |
eaccf33aef13c0d1da3a063a2894ce46cfb7ec59be1afc2bdfc1f3985015dd6c
|
| 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 18, 2026.
Transparency logRelease files / juxt-1.5.0-py3-none-any.whl
| Download URL | juxt-1.5.0-py3-none-any.whl |
|---|---|
| Size | 311.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97aa1a0cf838683c08a17975397a899315dd2de08ca1b66767f608a40704045b
|
|
BLAKE2b-256 checksum How to use checksums |
4b7349803793c3e98f31655b2967bb871ea13a141930e8a255ba770740467dfc
|
| 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 18, 2026.
Transparency logSecurity for juxt 1.5.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.
Attestation for juxt-1.5.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 18, 2026.
Transparency logA 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.