haochengxia / vscode-pydata-viewer

Display PyData files (.npz .npy .pkl .pth) in VSCode.
https://marketplace.visualstudio.com/items?itemName=Percy.vscode-pydata-viewer
MIT License
14 stars 8 forks source link

feat: repeat till EOF when loading pickle #16

Closed kenshi84 closed 9 months ago

kenshi84 commented 9 months ago

This is useful when multiple objects were written to the same file like

pickle.dump(obj1, f)
pickle.dump(obj2, f)
haochengxia commented 9 months ago

Great PR! Thanks a lot! I've never used pickle in this way before, so I've never really considered it until now.

haochengxia commented 9 months ago

This feature is now available for this extension starting from version 0.0.11. 🥂