Skip to content

FIX: make the show API on webagg consistent with others #22499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2022

Conversation

tacaswell
Copy link
Member

PR Summary

Adds a keyword-only block kwarg to the show method on webagg (like all other backends)

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • [n/a] New features are documented, with examples if plot related.
  • [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs should build without error).

@tacaswell tacaswell added this to the v3.5.2 milestone Feb 19, 2022
@tacaswell tacaswell mentioned this pull request Feb 19, 2022
6 tasks
@timhoffm timhoffm merged commit 53c5f88 into matplotlib:main Feb 19, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Feb 19, 2022
@anntzer
Copy link
Contributor

anntzer commented Feb 19, 2022

Should

# TODO: The above is a hack to get the WebAgg backend working with
# ipython's `%pylab` mode until proper integration is implemented.
if get_backend() == "WebAgg":
block = True
have been updated? Could/does block make any sense in a webagg context? (If yes, then adding it as noop seems wrong; if not, ignoring it seems OK.)

timhoffm added a commit that referenced this pull request Feb 19, 2022
…499-on-v3.5.x

Backport PR #22499 on branch v3.5.x (FIX: make the show API on webagg consistent with others)
@timhoffm
Copy link
Member

Should a non-None block value in show warn or raise if it has no effect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants