Thanks for the reply.
If I run dashboard.py from https://github.com/bokeh/bokeh/blob/0.12.9/examples/howto/layouts/dashboard.py with no modifications, it works.
If I move linked_panning() to the front of the layout list, The error is thrown.
The only modification are lines 90-94 from:
l = layout([
bollinger(),
slider(),
linked_panning(),
], sizing_mode=‘stretch_both’)
to:
l = layout([
linked_panning(),
bollinger(),
slider(),
], sizing_mode=‘stretch_both’)
I tested using a new 3.6.1 virtualenv with bokeh 0.12.9 installed.
Same result on FF, Chrome, Safari (Mac) and Edge on Windows 10
The JS error is:
Uncaught Error: unsatisfiable constraint
at t.addConstraint (bokeh-0.12.9.min.js:84)
at t.add_constraint (bokeh-0.12.9.min.js:2)
at e.r.CanvasView.e.set_dims (bokeh-0.12.9.min.js:25)
at e.r.PlotCanvasView.e.render (bokeh-0.12.9.min.js:30)
at e.r.PlotCanvasView.e._layout (bokeh-0.12.9.min.js:30)
at e.r.LayoutDOMView.e._layout (bokeh-0.12.9.min.js:29)
at e.r.LayoutDOMView.e._layout (bokeh-0.12.9.min.js:29)
at e.r.LayoutDOMView.e._layout (bokeh-0.12.9.min.js:29)
at e.r.LayoutDOMView.e._do_layout (bokeh-0.12.9.min.js:29)
at e.r.LayoutDOMView.e.layout (bokeh-0.12.9.min.js:29)
I removed 0.12.9 and installed 0.12.7 and I could not reproduce the problem.
I didn’t get a chance to test older versions or 0.12.10 dev
···
On Tue, Oct 10, 2017 at 8:58 AM, Mateusz Paprocki [email protected] wrote:
Hi,
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CANFzp8g0joMyNONkdPubSFNYj2%3DHCQULCFys_-ky4%3DpGRDGCWA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
On Tue, Oct 10, 2017 at 4:48 AM, Kris Seraphine [email protected] wrote:
Hello,
Just starting to dip my toes into Bokeh and looking to create a simple dashboard similar to the example here:
https://github.com/bokeh/bokeh/blob/0.12.9/examples/howto/layouts/dashboard.py
in my code, the layout renders successfully with:
lo = layout([[bar], [line], [wedge1,wedge2]], responsive=True, sizing_mode=‘stretch_both’)
first thing is to remove responsive. It’s deprecated and shouldn’t be used together with sizing_mode (unfortunately there’s no warning regarding this).
However, if I change the order of the figures to layout([[wedge1,wedge2], [bar], [line]] I get an unsatisfied constraint error.
The same seems to be true with the dashboard.py example. It renders as-is but if I change the order of the list of plots, the same error is thrown.
It tried every combination of plots in this example and each rendered properly. I would suggest submitting a complete, minimal example of what doesn’t work for you, so that I have exact code to reproduce the described behavior.
Is there some restriction related to the number of plots in a row and the order of the rows in the layout?
There should be none, but bugs are always a possibility.
Mateusz
I’ve tested in Chrome and Firefox with the same results.
Please let me know if any more information would be useful.
Thanks
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/83fa3c0c-d88f-4d8a-81c9-f7846dbd7154%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.