Skip to content

Commit 0513f45

Browse files
committed
Disable jupyter dash in databricks.
1 parent 7a58dab commit 0513f45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dash/_jupyter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ def _wrap_errors(error):
489489

490490
@property
491491
def active(self):
492-
return _dep_installed and (self.in_ipython or self.in_colab)
492+
_inside_dbx = "DATABRICKS_RUNTIME_VERSION" in os.environ
493+
return _dep_installed and not _inside_dbx and (self.in_ipython or self.in_colab)
493494

494495

495496
jupyter_dash = JupyterDash()

0 commit comments

Comments
 (0)