ben-pr-p
ben-pr-p8mo ago

Sharing variables across sessions

Given that it's 1 process, is there anyway to share a variable across multiple sessions of a notebook? Or, is that scary and violates isolation and I should use Redis
2 Replies
Akshay
Akshay8mo ago
We don't have that right now. I see why that would make sense -- avoid loading the same data in every thread for example ... we should probably add support for it in the future.
Myles Scolnick
Myles Scolnick8mo ago
@ben-pr-p - sqlite might be a good tool for this - you can keep the sqlfile local. you can probably use any python library for this, but if there is something marimo can do to make this easier (less boilerplate, watching, etc), i think it would be interesting to support this