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: Add a way to create plugins like Plots and the Variable explorer to the API #15922

Merged
merged 22 commits into from
Oct 7, 2021

Conversation

impact27
Copy link
Contributor

@impact27 impact27 commented Jun 23, 2021

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)

Issue(s) Resolved

Fixes #15921

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:

@pep8speaks
Copy link

pep8speaks commented Jun 23, 2021

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

Line 78:76: W292 no newline at end of file

Comment last updated at 2021-10-07 13:59:06 UTC

@dalthviz dalthviz changed the title Refactor shell connect PR: Refactor shell connect Jun 23, 2021
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 great refactor @impact27! Thanks a lot for it!

It'll allow anyone that wants to create plugins like Plots and the Variable Explorer to easily do it from now on.

spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/utils/shellconnect.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/utils/shellconnect.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/utils/shellconnect.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/utils/shellconnect.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/utils/shellconnect.py Outdated Show resolved Hide resolved
spyder/plugins/plots/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/plots/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/variableexplorer/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/variableexplorer/plugin.py Outdated Show resolved Hide resolved
@ccordoba12 ccordoba12 changed the title PR: Refactor shell connect PR: Add a way to create plugins like Plot and the Variable explorer to the API Jun 23, 2021
@ccordoba12 ccordoba12 changed the base branch from master to 5.x June 23, 2021 17:20
@ccordoba12 ccordoba12 changed the title PR: Add a way to create plugins like Plot and the Variable explorer to the API PR: Add a way to create plugins like Plots and the Variable explorer to the API Jun 23, 2021
…eleted

It's not really necessary because it was only used in the Variable
Explorer to call set_namespace_view_settings and
refresh_namespacebrowser, but the right place to do that is in
connect_external_kernel.
This allows other plugins to take certain actions after that happens.
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 a lot @impact27 for this great improvement!

I decided to take care of and finish your PR to integrate it with the new teardown mechanism developed by @andfoy in PR #16012.

@ccordoba12 ccordoba12 merged commit 26310a5 into spyder-ide:5.x Oct 7, 2021
ccordoba12 added a commit that referenced this pull request Oct 7, 2021
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.

Consoles connected to external ipykernels break Plots and the Variable Explorer
3 participants