diff --git a/CHANGELOG.md b/CHANGELOG.md index ecb34ad451..adfe1cc3b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to `dash` will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). +## [2.11.1] - 2023-06-29 + +## Fixed + +- [#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 + +- [#2573](https://github.com/plotly/dash/pull/2573) Use `julia --project` command inside `JuliaRunner`. +- [#2579](https://github.com/plotly/dash/pull/2579) Add warning if using `JupyterDash` + ## [2.11.0] - 2023-06-23 ## Added 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() diff --git a/dash/dash.py b/dash/dash.py index e3415e6294..64b2a1ea02 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -3,6 +3,7 @@ import sys import collections import importlib +import warnings from contextvars import copy_context from importlib.machinery import ModuleSpec import pkgutil @@ -511,6 +512,12 @@ def __init__( # pylint: disable=too-many-statements self.logger.setLevel(logging.INFO) + if self.__class__.__name__ == "JupyterDash": + warnings.warn( + "JupyterDash is deprecated, use Dash instead.\n" + "See https://dash.plotly.com/dash-in-jupyter for more details." + ) + def init_app(self, app=None, **kwargs): """Initialize the parts of Dash that require a flask app.""" diff --git a/dash/testing/application_runners.py b/dash/testing/application_runners.py index 996cbf4f18..2b560c89da 100644 --- a/dash/testing/application_runners.py +++ b/dash/testing/application_runners.py @@ -505,7 +505,9 @@ def start(self, app, start_timeout=30, cwd=None): logger.info("Run Dash.jl app with julia => %s", app) - args = shlex.split(f"julia {os.path.realpath(app)}", posix=not self.is_windows) + args = shlex.split( + f"julia --project {os.path.realpath(app)}", posix=not self.is_windows + ) logger.debug("start Dash.jl process with %s", args) try: diff --git a/dash/version.py b/dash/version.py index 7f6646a762..200c236308 100644 --- a/dash/version.py +++ b/dash/version.py @@ -1 +1 @@ -__version__ = "2.11.0" +__version__ = "2.11.1"