始终不知道如何优雅地关闭conn #9882
Unanswered
WalkCharlie
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Hi! I'm not entirely sure what the question is, but it looks like you're trying to close a previous That's expected: marimo deletes a cell's own variables before it re-runs (it's a reactive notebook, not Jupyter). Since this cell defines The good news is you usually don't need to close it manually. When the cell re-runs, marimo drops the old connection and DuckDB closes it on garbage collection. Also with conn = duckdb.connect(file_browser.path(index=0), read_only=True) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
All reactions