◐ Shell
clean mode source ↗

MNT: Add provisional get_backend(resolve=False) flag by timhoffm · Pull Request #29039 · matplotlib/matplotlib

tacaswell

jklymak

The default is `resolve=True` for now, so that this introduction
is completely backward-compatible.

The provisional introduction anticipates planned changes for the
backend resolution (matplotlib#26406 (comment)).

If all plays out as intended, this prolongs the range of releases
for the migration: If we start deprecating `rcParams._get("backend")` say in 3.11, people can immediately switch to
`get_backend(resolve=False)` and their code still runs on 3.10
without version gating.
The worst that can happen is that the introduced flag was not
helpful and we remove it again, which is easy because it's provisional.

tacaswell

timhoffm added a commit to timhoffm/matplotlib that referenced this pull request

Jan 14, 2026

timhoffm added a commit to timhoffm/matplotlib that referenced this pull request

Jan 14, 2026

timhoffm added a commit to timhoffm/matplotlib that referenced this pull request

Jan 14, 2026