Hello everyone,
I do not see the point of creating a minimal example to expose my current challenge.
I have a project in Flask that I’m using Bokeh 3.3.0 to do the visualization.
After inspecting the HTML I found the elements that I needed to insert in the styles.css which are the following:
:host {
--base-font: var(--bokeh-base-font, Aptos, Arial, sans-serif);
--mono-font: var(--bokeh-mono-font, monospace);
}
I have all the fonts installed for all users in the system. When I use only models.Label it will assume the font and it won’t be an issue, once I use models.LabelSet which is more feasible, it won’t assume the font, either override with the .css file.
I tried converting Bokeh to JS with components and CDN, in both cases, this happens.
Any suggestion will be very welcome, for now, I will do it the hard way and create several Labels.
In the image above, the central rects are with LabelSet the ones above and below are with Label. Ye can see the difference in the font. This is a dynamic dashboard, so LabelSet would really make the job more practical.



