Skip to content

Configuration

igaurab edited this page Nov 18, 2026 · 4 revisions

gpython has no settings screen. You change a setting with :set … (or its key) while gpython runs, and it is written to ~/.config/gpython/config.toml ($XDG_CONFIG_HOME/gpython/config.toml when that is set), so every later session starts the same way. You can also edit the file by hand.

Settings

Setting :set or key In config.toml Default
Vim keys in the editor :set vim / :set novim (--no-vim for one run) vim = true on
Run mode :set lazy / :set nolazy, f3 run_mode = "lazy" or "reactive" lazy
Concurrent cells :set concurrent / :set noconcurrent concurrent = true off
How many cells run at once :set concurrency=N concurrency = 4 cores + 4, at most 32
Check shared names after a group :set concurrent_verify / :set noconcurrent_verify concurrent_verify = true on
Install missing modules without asking :set autoinstall / :set noautoinstall autoinstall = true off
How a missing module is installed picked in the install prompt install_mode uv pip install
Line numbers :set nu / :set nonu, l in cell mode line_numbers = true on
Run time in cell headers :set time / :set notime, t in cell mode timing = true off
Cursor shape in insert mode :set cursor=block|bar|underline insert_cursor = "bar" block
Theme :theme name, ctrl+t (--theme name for one run) theme = "nord" terminal
Bottom bar :set statusbar / :set nostatusbar status_bar = true on
Debugger recording :set debug_detail=full|auto|balanced|lean debug_detail = "full" full

:set debug_history? (any debug_ key with ?) shows the value in effect and where it comes from.

Concurrent cells

Off by default. With :set concurrent, cells of a run that share no state run at the same time, on threads in the one kernel; :groups shows which cells run together. :set concurrency=1 runs them one by one again without turning the mode off. What counts as shared state, and the limits, are in Running cells.

Bottom bar modules

status_bar = true
[status]
cpu = false
layout = "mode clock host ram"
clock_format = "%H:%M"
style = "tmux"

What each key does is in Themes and status bar.

Debugger limits

debug_history, debug_events, debug_thinning, debug_repr_chars, debug_strip_items, debug_grid_size and debug_stats override single limits of the debug_detail preset; see Variables and the debugger.

Remembered per notebook

The config file also keeps the Python environment each notebook last used and the uv flags each project was last started with. gpython writes these itself; see Python environments.

Clone this wiki locally