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: Restore notebooks that were open at end of last session #292

Merged
merged 10 commits into from
Jun 14, 2020

Conversation

jitseniesen
Copy link
Member

This PR makes Spyder store the file names of the notebooks that were open at the end of a session when the plugin is closed. The next time Spyder opens, the plugin will open these notebooks again. As before, notebooks with names like untitled0.ipynb in the temporary directory are deleted, so these will not be opened at the start of the next session. If there are no notebooks to be opened at the start of a session, the plugin will open a newly created notebook and display the welcome tab.

This PR also adds some tests and convenience functions for identifying the welcome tab and untitled, newly created notebooks.

Fixes #68.

@jitseniesen jitseniesen merged commit d8d246c into spyder-ide:master Jun 14, 2020
@jitseniesen jitseniesen deleted the remember-opened branch June 14, 2020 19:36
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.

Restore the previous list of opened notebooks (per session)
1 participant