Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions django_plotly_dash/dash_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class DjangoDash:
def __init__(self, name=None, serve_locally=False,
expanded_callbacks=False,
add_bootstrap_links=False,
suppress_callback_exceptions=False,
**kwargs): # pylint: disable=unused-argument
if name is None:
global uid_counter # pylint: disable=global-statement
Expand All @@ -94,6 +95,7 @@ def __init__(self, name=None, serve_locally=False,

self._expanded_callbacks = expanded_callbacks
self._serve_locally = serve_locally
self._suppress_callback_exceptions = suppress_callback_exceptions

if add_bootstrap_links:
from bootstrap4.bootstrap import css_url
Expand Down Expand Up @@ -147,6 +149,7 @@ def form_dash_instance(self, replacements=None, ndid=None, base_pathname=None):
serve_locally=self._serve_locally)

rd.layout = self.layout
rd.config['suppress_callback_exceptions'] = self._suppress_callback_exceptions

for cb, func in self._callback_sets:
rd.callback(**cb)(func)
Expand Down