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.

Functions as layout no longer work (_validate_layout throws error)

See original GitHub issue

Hello,

since the _validate_layout method was introduces in dash.py setting functions as layout no longer works, because calling traverse() on an function fails. Setting a function as layout is necessary to make the app reload the layout on page reload as described in the documentation.

Currently the fastest option is to remove the _validate_layout call in the _setup_server method.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rmarren1commented, Aug 14, 2018

Will have a fix for this soon, this was introduced in 0.22.0 via https://github.com/plotly/dash/pull/294 so you can downgrade to 0.21.1 for now or edit as above.

1reaction
phifrecommented, Aug 14, 2018

Checking if the layout is a function and then calling it once to validated the returned layout would be an appropriate fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE9/10 bug · Issue #168 · react-grid-layout/react-grid-layout
On IE9/IE10, I'm getting the following error: SCRIPT5007: Unable to get ... props and they work just fine on IE11 and non-IE browsers....
Read more >
Exception skipped Typescript Angular - Stack Overflow
I am trying to perform a validation and if no exception is thrown, then perform an action. The problem is that the code...
Read more >
MBR2GPT Disk Layout Validation Failed - YouTube
This video talks about the another reason for getting Disk layout validation failed while using MBR2GPT to convert the disk from MBR to...
Read more >
Fix "Instagram Layout" App Not Working ... - YouTube
Instagram # Layout #NotOpen #NotWorking #ProblemFix "Instagram Layout " App Not Working / Instagram Layout Not Opening Problem SolvedIn this ...
Read more >
Instagram Layout App Not Opening Problem Solved - YouTube
In this video, i will show you How to Fix Instagram Layout App Not Working Problem | Instagram Layout Mobile App Not Opening...
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