Skip to content

Commit

Permalink
Merge pull request #2579 from plotly/fix/jp-conflicts
Browse files Browse the repository at this point in the history
Add warning if using JupyterDash
  • Loading branch information
T4rk1n committed Jun 29, 2023
2 parents 4f33790 + 2fec4b4 commit e51660e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 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,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."""

Expand Down

0 comments on commit e51660e

Please sign in to comment.