From 0513f45f1df3aec10ca909099280570eaa5fc0c1 Mon Sep 17 00:00:00 2001 From: philippe Date: Tue, 27 Jun 2023 14:42:35 -0400 Subject: [PATCH 1/5] Disable jupyter dash in databricks. --- dash/_jupyter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dash/_jupyter.py b/dash/_jupyter.py index 44a582b6b2..1c1e1cd6da 100644 --- a/dash/_jupyter.py +++ b/dash/_jupyter.py @@ -489,7 +489,8 @@ def _wrap_errors(error): @property def active(self): - return _dep_installed and (self.in_ipython or self.in_colab) + _inside_dbx = "DATABRICKS_RUNTIME_VERSION" in os.environ + return _dep_installed and not _inside_dbx and (self.in_ipython or self.in_colab) jupyter_dash = JupyterDash() From f7ec31d10aa9093126e61517c7a204a938e7a1bd Mon Sep 17 00:00:00 2001 From: philippe Date: Tue, 27 Jun 2023 14:52:58 -0400 Subject: [PATCH 2/5] update changelog. --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 121e10e06e..cd836f65af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](https://semver.org/). ## [UNRELEASED] +## Fixed + +- [#2573](https://github.com/plotly/dash/pull/2578) Disable jupyter dash in databricks. + ## Changed - [#2573](https://github.com/plotly/dash/pull/2573) Use `julia --project` command inside `JuliaRunner`. From 285cc4dfdf2479d0b9d4ebce35c4cda3f927a1f2 Mon Sep 17 00:00:00 2001 From: philippe Date: Tue, 27 Jun 2023 15:24:22 -0400 Subject: [PATCH 3/5] build From 6da416860bb82efc8763cb43493a42e2cb68f038 Mon Sep 17 00:00:00 2001 From: Philippe Duval Date: Wed, 28 Jun 2023 12:55:23 -0400 Subject: [PATCH 4/5] Update CHANGELOG.md Co-authored-by: Alex Johnson --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd836f65af..b02812726e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ## Fixed -- [#2573](https://github.com/plotly/dash/pull/2578) Disable jupyter dash in databricks. +- [#2573](https://github.com/plotly/dash/pull/2578) Disable jupyter dash in Databricks, as the implementation here does not work in a Databricks notebook. Dash Enterprise customers can use the separate databricks-dash package for this purpose. ## Changed From 16662a98e1b09bb52dd23536dfaa84c2a4bede49 Mon Sep 17 00:00:00 2001 From: philippe Date: Wed, 28 Jun 2023 14:08:12 -0400 Subject: [PATCH 5/5] build