Skip to content
Advertisement

Pickle data not loading

Here I the data I try to save as a “pickle file”

JavaScript

Then in a separate script i open it:

JavaScript

It seems to run smoothly, however the only thing that appears in my variable explorer is a Buffered Reader Object.

Advertisement

Answer

pkl.load returns the loaded object. Your code immediately discards it. You should assign in to a variable:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement