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
$ uname -a Linux example 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
Expected behavior:
Observed behavior:
TypeError: _ is undefined
from pandas import DataFrame from bokeh.plotting import figure, show from bokeh.models import ColumnDataSource df = DataFrame({ "name": ["Alice","Bob"], "x": [1,2], "y": [None,4], }) TOOLTIPS = [ ("name", "@name"), ("x", "$x"), ("y", "$y"), ] fig = figure(tooltips=TOOLTIPS) source = ColumnDataSource(data=df) fig.text( x="x", y="y", source=source, text="name", ) show(fig)
TypeError: _ is undefined bokeh-2.0.2.min.js:423:1534 _hit_point https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:423 hit_test https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:254 hit_test https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:246 inspect https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:245 _inspect https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:545 _clear https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:545 _move_exit https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:545 _move_exit self-hosted:875 r https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:471 connect https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:233 emit https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:176 trigger https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:471 _trigger https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:471 map self-hosted:251 _trigger https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:471 _mouse_exit https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:471 d https://cdn.bokeh.org/bokeh/release/bokeh-2.0.2.min.js:471
y
None
df = DataFrame({ "name": ["Alice","Bob"], "x": [1,2], "y": [2,4], })
df = DataFrame({ "name": ["Alice","Bob"], "x": [1,2], "y": [2,None], })
circle
fig.circle( x="x", y="y", source=source, )
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
yuji38kwmt commentedApr 26, 2020
•
edited
ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)
Description of expected behavior and the observed behavior
Expected behavior:
Observed behavior:
TypeError: _ is undefined
error occurred in browser JavaScript console output.Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
Screenshots or screencasts of the bug in action
Additional
Case that behave as expected
when
y
column does not containNone
when first element of
y
column is notNone
.when
circle
method is usedThe text was updated successfully, but these errors were encountered: