Bokeh 0.12.4 to 0.12.6 - UTF-8 charset support
See original GitHub issueLately I’ve upgraded to Bokeh ver 0.12.6 from 0.12.4. I have previously used some UTF-8 codes in labels like ©, ®, .etc, and as far as I can see it’s no longer supported. Is there a fix or am I doing something wrong?
example:
citation = Label(x=90, y=70, x_units='screen', y_units='screen',
text='©2017 xyz.com', text_font_style="bold")
in ver 12.4 produces:
©2017 xyz.com
and in ver: 12.6:
©2017 xyz.com
test case script:
from bokeh.plotting import figure, output_file, show
from bokeh.models import Label
output_file("toolbar.html")
# create a new plot with the toolbar below
p = figure(plot_width=400, plot_height=400,
title=None, toolbar_location="right",
toolbar_sticky=False)
p.circle([1, 2, 3, 4, 5], [2, 5, 8, 2, 7], size=10)
citation = Label(x=90, y=70, x_units='screen', y_units='screen',
text='©2017 xyz.com', render_mode='css', text_font_style="bold")
p.add_layout(citation)
show(p)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
bokeh.util — Bokeh 0.12.12 documentation
Provide a dict subclass that supports access by named attributes. ... output to standard lists This function can encode some dtypes using a...
Read more >bokeh Changelog - pyup.io
- 6512 Bokeh 0.12.6 incompatible with python 2.7.9? - 6521 [component: bokehjs] [component: server] Deprecate toolevents - 6529 [component: build] ...
Read more >Index of /pub/fedora/linux/releases/35/Everything/x86_64/os ...
Index of /pub/fedora/linux/releases/35/Everything/x86_64/os/Packages/p. Icon Name Last modified Size Description. [PARENTDIR] Parent Directory - [ ] ...
Read more >NixOS - DistroWatch.com
gnome-characters-3.22.0 • gnome-chess-3.22.0 ... grml-zsh-config-0.12.4 • groff-1.22.3 • gromacs-4.6.7 ... libgnome-games-support-1.2.1 • libgnomekbd-2.32.0
Read more >Packages beginning with letter P - RPMFind
pam_ssh_user_auth-1.0-7.fc34, PAM module to help with SSH_AUTH_INFO_0, linux/x86_64 ... perl-Cwd-utf8-0.011-11.fc34, Fully UTF-8 aware Cwd, linux/noarch.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What you are referring to is a HTML entity that can replace a Unicode character. This was previously accidentally allowed, because the implementation was sloppy, allowing for arbitrary HTML. What should work is using a unicode escape sequence
'\u00a9 2017 xyz.com'
, but doesn’t for whatever reason (a bug).works for me with
0.12.10dev2
so closing