question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bokeh 0.12.4 to 0.12.6 - UTF-8 charset support

See original GitHub issue

Lately 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mattpapcommented, Jul 17, 2017

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).

0reactions
bryevdvcommented, Oct 11, 2017

works for me with 0.12.10dev2 so closing

screen shot 2017-10-10 at 19 11 59
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found