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

Saving session data (spydata) deletes all arrays nested inside other data structures #6689

Closed
CAM-Gerlach opened this issue Mar 9, 2018 · 0 comments

Comments

@CAM-Gerlach
Copy link
Member

Problem Description

In fixing #919 and writing more comprehensive tests for Spyder's save_dictionary and load_dictionary session spydata save/load functions, I discovered that saving one's session will delete all arrays that are not top-level, i.e. those inside lists, dictionaries, etc from the user's active session, during the process of removing them to be serialized separately. The fix is a simple one (just deepcopying the data passed to the save_dictionary function and a PR should be up shortly, but I thought I'd open this issue to document the problem.

What steps will reproduce the problem?

  1. Create a list or dictionary with a numpy array inside of it
  2. Save the session
  3. View the list/dictionary again

What is the expected output? What do you see instead?

Expected: Array is not removed. Actual: Array is.

Package Versions

  • Spyder: 3.2.7
  • Python: 3.6.4
  • Qt: 5.6.2
  • PyQt: 5.6
  • Operating System: Win 8.1 Pro x64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants