Skip to content

Commit a159913

Browse files
authored
Merge pull request #2582 from plotly/master-2.11.1
Master 2.11.1
2 parents 0144a59 + e6dec9b commit a159913

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5+
## [2.11.1] - 2023-06-29
6+
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+
11+
## Changed
12+
13+
- [#2573](https://github.com/plotly/dash/pull/2573) Use `julia --project` command inside `JuliaRunner`.
14+
- [#2579](https://github.com/plotly/dash/pull/2579) Add warning if using `JupyterDash`
15+
516
## [2.11.0] - 2023-06-23
617

718
## Added

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()

dash/dash.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sys
44
import collections
55
import importlib
6+
import warnings
67
from contextvars import copy_context
78
from importlib.machinery import ModuleSpec
89
import pkgutil
@@ -511,6 +512,12 @@ def __init__( # pylint: disable=too-many-statements
511512

512513
self.logger.setLevel(logging.INFO)
513514

515+
if self.__class__.__name__ == "JupyterDash":
516+
warnings.warn(
517+
"JupyterDash is deprecated, use Dash instead.\n"
518+
"See https://dash.plotly.com/dash-in-jupyter for more details."
519+
)
520+
514521
def init_app(self, app=None, **kwargs):
515522
"""Initialize the parts of Dash that require a flask app."""
516523

dash/testing/application_runners.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,9 @@ def start(self, app, start_timeout=30, cwd=None):
505505

506506
logger.info("Run Dash.jl app with julia => %s", app)
507507

508-
args = shlex.split(f"julia {os.path.realpath(app)}", posix=not self.is_windows)
508+
args = shlex.split(
509+
f"julia --project {os.path.realpath(app)}", posix=not self.is_windows
510+
)
509511
logger.debug("start Dash.jl process with %s", args)
510512

511513
try:

dash/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.11.0"
1+
__version__ = "2.11.1"

0 commit comments

Comments
 (0)