Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I am working in marimo. When displaying DuckdbPyRelations, it assumes a console width of like 70. I want it to have the behavior of jupyter, where the width is unbounded (because I can horizontally scroll).
Either
.show(max_width=10000000)
, but I have to do that on every call. I want to be able to set this once and then all future calls use itPossible implementations (in order of preference)
con.config.set("memory_limit", "10GB")
would result in callingSET memory_limit = '10GB', and
con.config.get("memory_limit")would result in calling
SELECT current_setting('memory_limit'). Then, we add in our extended config names, such as
default_show_max_width. IDK if it would be possible to use the duckdb extension API to actually make these be native to duckdb, so that
FROM duckdb_settings()` would include it? If not, then we just store the config state in the DuckdbPyConnection c++ class.duckdb.__jupyter__
is writable. Currently we init it to True/False at import time, but then if I modify it, it has no effect, because theDuckdbPyRelations::Print()
function recomputes this usingDuckDBPyConnection::IsJupyter()
on every call. Or make it so that there is aDuckDBPyConnection.__is_jupyter__
attribute, which is writable by me, and is used in this function. But still this is half-baked, since I also would like (to a lesser degree) to be able to permanently configure egmax_col_width
,max_rows
, etc. The full on config API would be better here.Beta Was this translation helpful? Give feedback.
All reactions