Skip to content

Commit e51660e

Browse files
authored
Merge pull request #2579 from plotly/fix/jp-conflicts
Add warning if using JupyterDash
2 parents 4f33790 + 2fec4b4 commit e51660e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1111
## Changed
1212

1313
- [#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`
1415

1516
## [2.11.0] - 2023-06-23
1617

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

0 commit comments

Comments
 (0)