News for hackers. Stuff that matters.
Re:JupyterLab 4.0 by bee_rider on Tuesday June 13, 2023 @09:00PM (#36319889)
It looks like there’s a %store command in Jupyter. I haven’t tried it out, but is this what you are looking for?

https://stackoverflow.com/questions/34342155/how-to-pickle-o...

(I just got it by googling “pickle an object in jupyter,” so sorry if this is something obvious that you’ve already seen and doesn’t quite solve your problem).

Re:JupyterLab 4.0 by fluidcruft on Tuesday June 13, 2023 @09:05PM (#36319923)
Yeah it got my hopes up when I found it. But when I was testing it, I didn't find the data actually made it into the .ipynb. It turns out that's actually a global storage in your home directory and doesn't go into the notebook at all. So different notebooks each overwrite the value if they use the same variable name.
Re:JupyterLab 4.0 by bee_rider on Tuesday June 13, 2023 @09:09PM (#36319969)
Oh wow, that’s a really awful design. Sorry.