Repository navigation
Command line
igaurab edited this page Nov 18, 2026
·
2 revisions
The command is gpython, with gpy as a short alias.
gpython # empty untitled notebook (ctrl+s or :w asks for a name)
gpython script.py # a plain script is split into cells automatically
gpython a.py b.py # several files: one tab each (gt / gT switch)
gpython notebooks/ # a directory: opens the file explorer there
gpython --no-vim nb.py # plain editing, no modal keys
gpython --theme nord nb.py # colour theme for this run (ctrl+t picks one and remembers it)
gpython --groups nb.py # print which cells may run at the same time, then exit
gpython --version # print the version and exitFiles: .py notebooks (plain scripts, # %% cells, Jupytext markdown cells),
marimo notebooks (@app.cell) and .ipynb; see File formats.
| Option | What it does |
|---|---|
--no-vim |
Plain editing, no modal keys (:set vim / :set novim inside gpython is remembered) |
--theme NAME |
Colour theme for this run only; see Themes and status bar |
--groups |
Print the groups of cells that may run together with :set concurrent, and exit; see Concurrent cells
|
-v, --version
|
Print the version and exit |
-h, --help
|
Print the usage text and exit |
In a uv project (a folder with pyproject.toml) the kernel runs in the project's
environment through uv run --with ipykernel; ipykernel comes from uv's cache, never
into the project. These flags mean what they mean to uv run and apply to this launch:
| Flag | What it does |
|---|---|
--extra NAME |
Install the project's optional dependencies NAME (repeatable) |
--all-extras |
All of them |
--group NAME |
A dependency group (repeatable); --all-groups for all |
--with PKG |
A package for this session only, outside the project (repeatable) |
--no-sync |
Use the environment as it is, install nothing |
Switching environments from inside gpython is on the Python environments page.
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