Repository navigation
Configuration
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.
| 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.
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.
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.
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.
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.
Use the notebook
- Getting started
- Command line
- Running cells
- Keys
- Commands
- Vim
- Markdown cells
- Variables and the debugger
- Images
Set up the workspace
Help and project