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: Migrate the IPython Console to the new API #16324

Merged
merged 31 commits into from
Nov 4, 2021

Conversation

dalthviz
Copy link
Member

@dalthviz dalthviz commented Aug 31, 2021

Description of Changes

IPython Console to Spyder 5 plugin API

Supersedes #12749 #15934

Depends on #15922

Issue(s) Resolved

Fixes #12194.

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: dalthviz

@dalthviz dalthviz self-assigned this Aug 31, 2021
@pep8speaks
Copy link

pep8speaks commented Aug 31, 2021

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

Line 932:80: E501 line too long (84 > 79 characters)

Line 1178:80: E501 line too long (88 > 79 characters)
Line 1760:80: E501 line too long (82 > 79 characters)

Line 2129:9: E731 do not assign a lambda expression, use a def

Comment last updated at 2021-11-03 18:11:07 UTC

@dalthviz dalthviz force-pushed the clean_ipyconsole_migration branch 8 times, most recently from d1380f8 to bd6b397 Compare September 6, 2021 19:06
@dalthviz dalthviz force-pushed the clean_ipyconsole_migration branch 5 times, most recently from dfc81bb to bcbc3e4 Compare September 13, 2021 18:04
@ccordoba12 ccordoba12 added this to the v5.2.0 milestone Sep 17, 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.

Thanks a lot @dalthviz for your hard work on this one! It looks pretty good.

This is an initial review for you, up to ipythonconsole/plugin.py, so you can start working on it. I'll try to leave another review for what's missing before the end of the week.

spyder/api/config/mixins.py Outdated Show resolved Hide resolved
spyder/api/config/mixins.py Outdated Show resolved Hide resolved
spyder/api/widgets/main_widget.py Outdated Show resolved Hide resolved
spyder/plugins/editor/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
@dalthviz dalthviz changed the title [WIP] PR: IPython Console migration (clean commit history) PR: IPython Console migration (clean commit history) Oct 14, 2021
@dalthviz dalthviz force-pushed the clean_ipyconsole_migration branch 2 times, most recently from c15b7f5 to a4677e1 Compare October 14, 2021 17:46
@dalthviz dalthviz changed the title PR: IPython Console migration (clean commit history) [WIP] PR: IPython Console migration (clean commit history) Oct 14, 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.

Hey @dalthviz, this is my second review. Things look pretty good, except for a couple of things we should take a closer look at.

spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/main_widget.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/main_widget.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/main_widget.py Outdated Show resolved Hide resolved
@dalthviz dalthviz changed the title [WIP] PR: IPython Console migration (clean commit history) PR: IPython Console migration (clean commit history) Oct 28, 2021
dalthviz and others added 17 commits October 29, 2021 10:46
…ange register/unregister kernel handlers method place to kernels section
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
…enu, MENU_SEPARATOR. Improve docstring for signals and remove commented code
…t. Add logic for conf change with sig_prompt_ready. Simplify set_elapsed_time conf change
…se update_actions instead of custom method. Remove unused code and comments
@ccordoba12 ccordoba12 changed the title PR: IPython Console migration (clean commit history) PR: Migrate the IPython Console to the new API Nov 4, 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.

Thanks a lot @dalthviz for all your hard work on this! It's finally ready!

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.

None yet

3 participants