Skip to content

Commit

Permalink
Add warning if using JupyterDash
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Jun 28, 2023
1 parent 16662a9 commit 03e62cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
import collections
import importlib
import warnings
from contextvars import copy_context
from importlib.machinery import ModuleSpec
import pkgutil
Expand Down Expand Up @@ -511,6 +512,9 @@ 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.")

def init_app(self, app=None, **kwargs):
"""Initialize the parts of Dash that require a flask app."""

Expand Down

0 comments on commit 03e62cb

Please sign in to comment.