PR: Hook into file actions#488
Merged
jitseniesen merged 20 commits intospyder-ide:masterfrom Sep 29, 2025
Merged
Conversation
ccordoba12
reviewed
Aug 15, 2025
The next commit will make use of the File menu hooks which were introduced in Spyder 6.1. Since this version is not yet released, do not try to run CI tests on Spyder from conda-forge.
Consequently, remove the `Open recent` submenu which was found inside the plugin's hamburger menu.
Reverting files is not (yet?) implemented in the notebook plugin.
To be folded in "Open recent" commit
The user can now simply use the corresponding items in the File menu. Also adapt the text in the welcome tab to reflect this.
a335828 to
2952e4b
Compare
ccordoba12
reviewed
Sep 27, 2025
This allows the tests in test_main_widget.py to be run independently without setting up the plugin.
The tests in test_main_window.py fail for some (unknown) reason if the import is at the top of the file.
3859e26 to
557ced0
Compare
This (apparently) prevents hangs in the "Post Install Conda" cleanup step. The idea for this comes from spyder PR #24227.
This is to silence a warning.
0d198dc to
0421137
Compare
If there is no Python process after running the tests, the exit code of the grep command is 1 which causes the workflow to fail. This commit prevents this.
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.
This PR uses the hooks into the items in the File menu and the corresponding buttons in the toolbar that was added in PR spyder-ide/spyder#22564 so that they can be used to create, open, save and close notebooks. This requires Spyder 6.1, so change the lower version bound to that.