Skip to content

Commit 4f33790

Browse files
authored
Merge pull request #2578 from plotly/fix/dbx
Disable jupyter dash in databricks.
2 parents 7a58dab + 16662a9 commit 4f33790

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](https://semver.org/).
44

55
## [UNRELEASED]
66

7+
## Fixed
8+
9+
- [#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.
10+
711
## Changed
812

913
- [#2573](https://github.com/plotly/dash/pull/2573) Use `julia --project` command inside `JuliaRunner`.

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)