Skip to content

Commit

Permalink
fix(duckdb): disable the progress bar by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Mar 22, 2023
1 parent 45b0c12 commit 1a1892c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ibis/backends/duckdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ def do_connect(
)

@sa.event.listens_for(engine, "connect")
def set_time_zone(dbapi_connection, connection_record):
def configure_connection(dbapi_connection, connection_record):
dbapi_connection.execute("SET TimeZone = 'UTC'")
# the progress bar causes kernel crashes in jupyterlab ¯\_(ツ)_/¯
dbapi_connection.execute("SET enable_progress_bar = false")

super().do_connect(engine)

Expand Down

0 comments on commit 1a1892c

Please sign in to comment.