PR: ipython magic command to rename tab from the console (status: dirty)#25936
Open
hprodh wants to merge 1 commit intospyder-ide:masterfrom
Open
PR: ipython magic command to rename tab from the console (status: dirty)#25936hprodh wants to merge 1 commit intospyder-ide:masterfrom
hprodh wants to merge 1 commit intospyder-ide:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
A small code modification adding a magic command
%rename_tab.Demo_rename_tabs.webm
There were 2 choices to be done :
rename_tabinspyder/external-deps/spyder-kernels/spyder_kernels/customize/code_runner.py(alongside runfile, debugfile, profilefile, runcell, ...), simply because it did not need to create a signal and it felt simpler.I think it is possible to homogeneize it with the other methods especially regarding the local scope (and the
@needs_local_scopedecorator maybe ?). (Actually, I have a feeling I did not put it in the right place, possibly it should belong alongside%clear,%edit, etc... but I struggled figuring out the whole Ipython console <-> spyder widget pipeline...)There are some glitches regarding the tab name suffixes '/A' auto-generated, I do not consider it a major concern, yet it might need to be confirmed it is not an issue.
To be clarified
Were the added declarations in the right place ?
Can we make the automatic tab name suffixes more stable ?
Issue(s) Resolved
Provides alternative solutions to #22132 and #17415
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:
hprodh