Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add private API retrieving the current event loop and backend GUI info.#11520

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jklymak merged 1 commit intomatplotlib:masterfromanntzer:getcurrenteventloop
Jul 4, 2018

Conversation

anntzer
Copy link
Contributor

Work towards implementation of backend switching (#9795).

Note that the API is kept private for now as the lack of extensibility
is a bit unsatisfying; perhaps we'll figure out a better way to do it
if other custom implementers (e.g., code editors?) get interested in
looking into it.

Therequired_event_loop variable could be made private for now, or
not...

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzeranntzer added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelJun 27, 2018
@anntzeranntzer added this to thev3.0 milestoneJun 27, 2018
@@ -14,6 +16,49 @@
if not line.startswith(' File "<frozen importlib._bootstrap'))


def _get_current_event_loop():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This should be something like_get_interactive_framework_name._get_current_event_loop makes me think it will return to me an object I can use as an event loop (alaasyncio.get_event_loop()).

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done, see below.

@tacaswell
Copy link
Member

I like the direction this is heading.

@anntzer
Copy link
ContributorAuthor

anntzer commentedJun 29, 2018
edited
Loading

Comment handled, and documented therequired_interactive_framework global.

edit: As for tests, I'll probably have something globally testing switchability once everything gets in (e.g. together with the last commit).

Work towards implementation of backend switching.Note that the API is kept private for now as the lack of extensibilityis a bit unsatisfying; perhaps we'll figure out a better way to do itif other custom implementers (e.g., code editors?) get interested inlooking into it.The `required_event_loop` variable could be made private for now, ornot...
Copy link
Member

@efiringefiring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I don't understand every detail, but overall it looks fine, and I don't see how it could hurt anything.

@jklymakjklymak merged commitd762d6d intomatplotlib:masterJul 4, 2018
@anntzeranntzer deleted the getcurrenteventloop branchJuly 4, 2018 18:13
@tacaswelltacaswell mentioned this pull requestJul 8, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@efiringefiringefiring approved these changes

@tacaswelltacaswelltacaswell approved these changes

Assignees
No one assigned
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Milestone
v3.0.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@tacaswell@efiring@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp