Skip to main content
Version: 2.20 (deprecated)

repl


pants repl [args]

Open a REPL with the specified code loadable.

Backend: pants.core

Config section: [repl]

Basic options

args

--repl-args="[<shell_str>, <shell_str>, ...]", ... -- [<shell_str> [<shell_str> [...]]]
PANTS_REPL_ARGS
pants.toml
[repl]
args = [
<shell_str>,
<shell_str>,
...,
]
default: []

Arguments to pass directly to the repl program, e.g. --repl-args='-i helloworld/main.py'.

Currently supported only for the ipython shell.

restartable

--[no-]repl-restartable
PANTS_REPL_RESTARTABLE
pants.toml
[repl]
restartable = <bool>
default: False

True if the REPL should be restarted if its inputs have changed.

shell

--repl-shell=<str>
PANTS_REPL_SHELL
pants.toml
[repl]
shell = <str>
default: None

Override the automatically-detected REPL program for the target(s) specified.

Advanced options

None

Deprecated options

None