Last active
April 2, 2022 18:28
-
-
Save bollwyvl/132aaff5cdb2c35ee1f75aed83e87eeb to your computer and use it in GitHub Desktop.
Accessing JupyterLite contents from pyolite
Is a complementary put_contents(path)
function also possible?
Yes, see this discussion comment.
It needs be polished and wrapped for users, I'd say.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is so super helpful! Thank you, @bollwyvl . I would like to add a note for someone else who runs into this issue -- if you have a binary file, the 'content' will be a string that is encoded using latin-1. I.e., if you want the bytes array (say, to do pickle.loads()), you will need to do: