question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make codebase compatible with Dash 2.0 release

See original GitHub issue

As well as #351, there is also a need to make django-plotly-dash work with the recent v2.x release(s) of Dash. One issue has already been reported as #353

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
IDeplacommented, Oct 26, 2021

I think the problem is with the dash package, It is bypassing the kwargs so you lose the context that you injected

yourenvironment/dash/_callback.py

//line 142
def add_context(*args, **kwargs):
            output_spec = kwargs.pop("outputs_list")
            _validate.validate_output_spec(insert_output, output_spec, Output)

            func_args, func_kwargs = _validate.validate_and_group_input_args(
                args, inputs_state_indices
            )

            # don't touch the comment on the next line - used by debugger
            output_value = func(*func_args, **func_kwargs)  # %% callback invoked %%

I tried (python3.6) adding

def add_context(*args, **kwargs):
            output_spec = kwargs.pop("outputs_list")
            _validate.validate_output_spec(insert_output, output_spec, Output)

            func_args, func_kwargs = _validate.validate_and_group_input_args(
                args, inputs_state_indices
            )
           mergedic={**func_kwargs, **kwargs}
            # don't touch the comment on the next line - used by debugger
            output_value = func(*func_args, **mergedic)  # %% callback invoked %%

and helps my problem (no user in kwargs).

0reactions
GibbsConsultingcommented, Jun 6, 2022

v2.0.0 is now out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating Interactive Dashboards using Plotly Dash - Topcoder
For the dashboard, we can read the data simply with pandas or create our own data. First we need to import all dependencies....
Read more >
Dash 2.0 Migration | Dash for Python Documentation | Plotly
This section is for you if you currently use Dash 1.x in your apps and want to upgrade to Dash 2.0. Here you'll...
Read more >
Dash Roadmap
Built to deliver financial freedom and shape the future of payments for people around the world, Dash has an ambitious roadmap and proven...
Read more >
Flutter - Build apps for any screen
Flutter transforms the entire app development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded apps from a single codebase.
Read more >
Building Multiple Distinctly Branded iOS Apps from a Single ...
Building Caviar and DoorDash iOS apps from the same codebase ... DoorDash-Release and DoorDash-Debug, making those configurations specific ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found