Skip to content

Commit 03e62cb

Browse files
committed
Add warning if using JupyterDash
1 parent 16662a9 commit 03e62cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dash/dash.py

Lines changed: 4 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,9 @@ def __init__( # pylint: disable=too-many-statements
511512

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

515+
if self.__class__.__name__ == "JupyterDash":
516+
warnings.warn("JupyterDash is deprecated, use Dash instead.")
517+
514518
def init_app(self, app=None, **kwargs):
515519
"""Initialize the parts of Dash that require a flask app."""
516520

0 commit comments

Comments
 (0)