Commit f2f01be
committed
fix intermittent Bokeh widget render via output_notebook(resources=INLINE)
The diachronic-analysis plot uses RadioButtonGroup/Switch from
bokeh.models.widgets. With the default CDN autoload, Bokeh fires
embed_document as soon as window.Bokeh is defined (after bokeh.min.js
parses) — so on slow loads bokeh-widgets.min.js hasn't registered
RadioButtonGroup yet and the figure fails with "could not resolve type
'RadioButtonGroup'". Switching to INLINE resources embeds the full
BokehJS bundle synchronously in one script tag, eliminating the race.1 parent ff627f6 commit f2f01be
1 file changed
Lines changed: 2 additions & 17 deletions
Lines changed: 2 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 83 | + | |
99 | 84 | | |
100 | 85 | | |
101 | 86 | | |
| |||
813 | 798 | | |
814 | 799 | | |
815 | 800 | | |
816 | | - | |
| 801 | + | |
0 commit comments