始终不知道如何优雅地关闭conn #9882
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) |
Beta Was this translation helpful? Give feedback.
-
如果用marimo的同时使用duckdb -ui 还是不能正常关闭就连接,上图估计是办法
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions