Functions as layout no longer work (_validate_layout throws error)
See original GitHub issueHello,
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:
- Created 5 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Checking if the layout is a function and then calling it once to validated the returned layout would be an appropriate fix.