Skip to main content
Version: 2.19.x (prerelease)

repl


pants repl [args]

Open a REPL with the specified code loadable.

Backend: pants.core

Config section: [repl]

Basic options

shell

--repl-shell=<str>
PANTS_REPL_SHELL
default: None

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

args

--repl-args="[<shell_str>, <shell_str>, ...]", ... -- [<shell_str> [<shell_str> [...]]]
PANTS_REPL_ARGS
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
default: False

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

Advanced options

None

Deprecated options

None