Repository navigation
Themes and status bar
| How | Result | Saved |
|---|---|---|
ctrl+t |
Opens the theme picker | Yes, when you press enter
|
:theme name |
Sets the theme | Yes |
:theme |
Shows the current theme | — |
--theme name on the command line |
Sets the theme for this session | No |
theme = "name" in the config file |
Sets the theme at start | — |
ctrl+t does not work in insert mode. There it is a vim key.
- Move through the list. The full notebook changes immediately, with the syntax colors of the editor.
- Type to filter the list.
-
enterkeeps the theme and saves it. -
escapegoes back to the theme you had.
terminal is the default theme. It uses the colors and the background of your terminal.
Thus gpython looks like the color scheme of the terminal.
The syntax colors are the 16 named colors of the terminal.
:theme default and :theme ansi also select it.
| Family | Names |
|---|---|
| Terminal | terminal |
| Catppuccin |
catppuccin-mocha, catppuccin-macchiato, catppuccin-frappe, catppuccin-latte
|
| Gruvbox |
gruvbox, gruvbox-light
|
| Material |
material-oceanic, material-palenight, material-darker, material-lighter
|
| Nord |
nord, nord-light
|
| Dracula |
dracula, dracula-light
|
| Tokyo Night |
tokyo-night, tokyo-night-light
|
| Solarized |
solarized-dark, solarized-light
|
| Monokai |
monokai, monokai-light
|
| Hiberbee |
hiberbee, hiberbee-light
|
| Textual | The themes that come with Textual, for example textual-dark, flexoki, rose-pine, atom-one-dark
|
hiberbee has the colors of the NvChad theme with that name, as Neovim shows a Python file,
and function calls in green. hiberbee-light is the light theme that gpython adds for it.
Short names: catppuccin is catppuccin-mocha. material and material-dark are
material-darker. gruvbox-dark is gruvbox.
The last row of the screen is the bottom bar.
- On the left: the mode badge (NORMAL, INSERT, CELL, …).
- On the right: modules, as in a tmux status line.
| Module | Shows |
|---|---|
mode |
The mode badge |
clock |
The date and time |
host |
The host name |
cpu |
The last twelve samples as vertical bars, and a percentage: cpu ▂▃▅▃▂ 33%
|
ram |
A block meter, a percentage and the quantity: ram ▪▪▪▪▪▪ 55% 14.1G/32.0G
|
gpu |
As cpu. Only on computers that have nvidia-smi
|
All modules are on by default.
Colors of the bars and numbers:
| Load | Color |
|---|---|
| Below 30% | Green |
| 30% to 80% | Yellow |
| Above 80% | Red |
| Task | How |
|---|---|
| Hide the bar |
:set nostatusbar, or status_bar = false
|
| Show the bar | :set statusbar |
| Remove one module |
status.<module> = false, for example status.cpu = false
|
| Set the sequence of the modules | status.layout = "mode clock host ram" |
| Set the clock format |
status.clock_format = "%H:%M" (a strftime pattern) |
| Draw one level symbol and no graph |
status.style = "tmux", for example cpu [▃] 51%
|
The status. keys have no :set command. Put them in the config file:
status_bar = true
[status]
cpu = false
layout = "mode clock host ram"
clock_format = "%H:%M"
style = "tmux"The defaults are on the Configuration page.
A cell header looks like this: ✓ c3 [4] 1.25s defines x · uses y
| Part | Meaning |
|---|---|
✓ |
The state of the cell. See the marks |
c3 |
The position of the cell in the notebook |
[4] |
The run number, as In [4] in Jupyter |
1.25s |
The run time. It shows only when t or :set time turned it on |
defines x · uses y |
The names that the cell defines and uses |
Run time formats: 12ms, 420ms, 1.25s, 1m 05s.
The prompts of r 6, g 6 and r t show in the header of the screen while you type them.
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