Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9919e28

Browse files
Merge pull request #533 from delsim/dash-version-3
Update dpd to work with dash versions > 3 This permits use of dash v3.0 and higher.
2 parents f65e613 + 820ca69 commit 9919e28

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

‎django_plotly_dash/dash_wrapper.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ def __init__(self,
430430

431431
kwargs['url_base_pathname'] = self._base_pathname
432432
kwargs['server'] = self._notflask
433+
#kwargs['use_async'] = False
433434

434435
#xkwargs['DEBUG'] = kwargs.get('DEBUG', False)
435436

@@ -819,3 +820,12 @@ def set_embedded(self, embedded_holder=None):
819820
def exit_embedded(self):
820821
'Exit the embedded section after processing a view'
821822
self._return_embedded = False
823+
824+
def __call__(self, *args, **kwargs):
825+
"""Implement a no-op __call__ method.
826+
827+
This is needed as dash v3.1.0 adds a __call__ method to the underlying Dash
828+
class, and this interferes with the operation of Django templates.
829+
"""
830+
return self
831+

‎django_plotly_dash/version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
2424
'''
2525

26-
__version__ = "2.4.7"
26+
__version__ = "2.5.0"

‎pylintrc‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,6 @@ max-line-length=100
319319
# Maximum number of lines in a module
320320
max-module-lines=1000
321321

322-
# List of optional constructs for which whitespace checking is disabled. `dict-
323-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
324-
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
325-
# `empty-line` allows space-only lines.
326-
no-space-check=trailing-comma,
327-
dict-separator
328322

329323
# Allow the body of a class to be on the same line as the declaration if body
330324
# contains single statement.
@@ -475,4 +469,4 @@ known-third-party=enchant
475469

476470
# Exceptions that will emit a warning when being caught. Defaults to
477471
# "Exception"
478-
overgeneral-exceptions=Exception
472+
overgeneral-exceptions=builtins.Exception

‎requirements.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
dash>=2.0,<3.0
1+
dash>=2.0
22
plotly
3-
dpd-components
3+
dpd-components>=0.2.0
44

55
dash-bootstrap-components
66

‎setup.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
'Documentation': 'http://django-plotly-dash.readthedocs.io/',
4242
},
4343
install_requires = ['plotly',
44-
'dash>=2.0,<3.0',
45-
'dpd-components',
44+
'dash>=2.0',
45+
'dpd-components>=0.2.0',
4646

4747
'dash-bootstrap-components',
4848

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /