diff --git a/CHANGELOG.md b/CHANGELOG.md index b02812726e..582839611c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ## 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 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."""