-
-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GridSpec layout [doc-build] #338
Conversation
Seems very cool! We should have a demo example using this approach, with some numeric readouts and other things that aren't plots, as in the various dashboards you find if you search for "dashboard" images. |
Here's a more complex example: and here's an error when trying to assign to a region of the grid that's already occupied:
|
eaf2652
to
a5829d6
Compare
Is there a simple way to center content in each grid cell's region, both vertically and horizontally? Presumably no one would want A, B, C, D to be in the upper left like that. |
There is probably some combination of CSS that will do it, worth looking into but not tied up with this PR. |
Codecov Report
@@ Coverage Diff @@
## master #338 +/- ##
==========================================
- Coverage 87.05% 86.89% -0.17%
==========================================
Files 88 88
Lines 7263 7540 +277
==========================================
+ Hits 6323 6552 +229
- Misses 940 988 +48
Continue to review full report at Codecov.
|
Implements a
GridSpec
layout based on the new GridBox model in bokeh. It works quite differently from the previous approach, you no longer have to declare the number of cols and rows, you simply declare a size (or sizing_mode='stretch_both') and then start filling the grid:Supersedes #31