-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Themed glyphs not applying #6821
Comments
btw. Updated version of this example is available in PR #6807. Perhaps it could be improved further based on code in this issue (e.g. usage of |
It would appear none of the theme is applied in 1.1dev |
This keeps getting worse. Not only is none of the theme applied but the None color values trigger validation errors. |
I am interested in themes so I came across this issue. Was this tracked down to a problem on the javascript side? |
I expect this is a problem on the Python side, but it will still require someone to investigate to uncover the root cause |
I'll make a run at this. |
👍 lmk if you need to have a call to do a deep dive on any of this. I'll probably have to remind myself of some things as I go through, for that matter. The theme implementation, is it relates to the larger property system and especially synchronization in the server case, is a bit involved. TLDR theme values need to be applied, but not in a way that triggers events and callbacks. |
I can report some quick progress. There are two problems.
diff fixed.py orig.py
101c101
< outline_line_color: "#FFFFFF"
---
> outline_line_color: None
103,104c103,104
< axis_line_color: "#FFFFFF"
< major_tick_line_color: "#FFFFFF"
---
> axis_line_color: None
> major_tick_line_color: None
125c125
< f.write(file_html(doc, INLINE, plot.title.text, theme=doc.theme))
---
> f.write(file_html(doc, INLINE, plot.title.text)) I'll look into |
I understand the problem now. When you call
This is buried inside the context manager
But in the situation we are looking at, Weirdly, using the argument One fix is just to rename the
|
Last comment. You can't use
in yaml if you want to set the value None. You need:
Otherwise, None gets translated by the yaml parser as the string None, which the bokeh properties interpret as a field name. Again, not sure this is a bug, just a fact of life for yaml, but the documentation should make it clear. |
@jeremy9959 Thanks for looking in to this. I am not sure that
and that's because inside the running app code, the It think one approach, given the constraints, is to find a way for "standalone" functions like This:
is super unfortunate and ugly and I in fact did not know about it at all. Some googling seems to suggest just |
Changing the default value of
So this change, plus a documentation update that explains this, seems like a minimal way to make this work. Before doing that I'd want to understand better how the other "standalone" functions work with themes and whether the same change should happen there. My understanding is that the standalone functions embed stuff into pages that don't need a bokeh server to view. But |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The text theme values in the code below are not applied.
The text was updated successfully, but these errors were encountered: