Skip to content

Comments

PR: Hook into file actions#488

Merged
jitseniesen merged 20 commits intospyder-ide:masterfrom
jitseniesen:file-menu
Sep 29, 2025
Merged

PR: Hook into file actions#488
jitseniesen merged 20 commits intospyder-ide:masterfrom
jitseniesen:file-menu

Conversation

@jitseniesen
Copy link
Member

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.

@jitseniesen jitseniesen added this to the v0.6.3 milestone Aug 12, 2025
@jitseniesen jitseniesen self-assigned this Aug 12, 2025
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.
@jitseniesen jitseniesen marked this pull request as ready for review September 25, 2025 20:52
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.
@jitseniesen jitseniesen force-pushed the file-menu branch 2 times, most recently from 3859e26 to 557ced0 Compare September 28, 2025 19:45
This (apparently) prevents hangs in the "Post Install Conda"
cleanup step. The idea for this comes from spyder PR #24227.
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.
@jitseniesen jitseniesen merged commit 70afd68 into spyder-ide:master Sep 29, 2025
9 checks passed
@jitseniesen jitseniesen deleted the file-menu branch September 29, 2025 18:35
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.

2 participants