Skip to content
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

PR: Show Matplotlib backend state in status bar #14199

Merged
merged 19 commits into from
Jun 7, 2023

Conversation

impact27
Copy link
Contributor

@impact27 impact27 commented Nov 11, 2020

Description of Changes

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot or animation (if affecting the UI, see Licecap)

Add matplotlib state to status bar and allows switching between inline and interactive by clicking the status bar.

Issue(s) Resolved

Fixes #

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

matplotlib

@pep8speaks
Copy link

pep8speaks commented Nov 11, 2020

Hello @impact27! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-08-30 16:36:20 UTC

@impact27 impact27 changed the title PR: add matplotlib state to status bar PR: Add matplotlib state to status bar Nov 12, 2020
@impact27 impact27 changed the base branch from 4.x to 5.x April 11, 2021 11:53
@ccordoba12 ccordoba12 mentioned this pull request Jul 1, 2021
@ccordoba12 ccordoba12 changed the base branch from 5.x to master July 6, 2022 14:56
@ccordoba12 ccordoba12 added this to the v6.0alpha1 milestone Jul 6, 2022
…spyder-ide/spyder-kernels.git external-deps/spyder-kernels

subrepo:
  subdir:   "external-deps/spyder-kernels"
  merged:   "163dc4ee6"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-kernels.git"
  branch:   "master"
  commit:   "163dc4ee6"
git-subrepo:
  version:  "0.4.5"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "aa416e4"
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks @impact27 for your patience with this one. I left some suggestions and comments for you.

spyder/plugins/ipythonconsole/widgets/status.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/status.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/status.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/status.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/status.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/status.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/status.py Outdated Show resolved Hide resolved
@ccordoba12
Copy link
Member

Thanks @impact27 for addressing my review! I fixed some minor issues I found when testing your PR locally. Besides that, I think nothing else is needed here. So, after our tests pass, I'll merge it.

@ccordoba12 ccordoba12 changed the title PR: Add matplotlib state to status bar PR: Show Matplotlib backend state in status bar Jun 6, 2023
- This will make Spyder start faster.
- Also, check if Matplotlib has been imported when the main window is
visible before calling on_mainwindow_visible for plugins. Otherwise,
Spyder will crash on development mode due to the new MatplotlibStatus
widget.
… empty

Also, use that icon to represent the Plots plugin and in the Matplotlib
status bar widget.
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

This is a really nice addition, thanks @impact27 for your work on it!

Note: The failure in our tests is unrelated to this.

@ccordoba12 ccordoba12 merged commit 5941ae6 into spyder-ide:master Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants