- classmethod Config.state(if_set: bool = False, env_only: bool = False) dict[str, str | None] [source]#
Show the current state of all Config variables as a dict.
by default this will show the state of all
Configenvironment variables. change this to
Trueto restrict the returned dictionary to include only those that have been set to a specific value.
include only Config environment variables in the output; some options (such as “set_fmt_float”) are set directly, not via an environment variable.
>>> set_state = pl.Config.state(if_set=True) >>> all_state = pl.Config.state()