-
-
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
[BUG] Can't plot INT64 values #13573
Comments
@jmakov please provide a pure-Bokeh Minimal Reproducible example. |
The largest integer bokeh will accept is |
I'm working with nanosecond timestamps so it's a bit inconvenient that they need to be converted just to get a plot. But if that's indented, then this issue can be closed since it's not a bug but a design decision. |
It's a design decision of JavaScript @jmakov, that we have to live with. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number |
Is there a design document somewhere for Bokeh that talks about JavaScript BigInt vs Number? Obviously in most cases Number is more suited to plotting arbitrary quantities, and it looks to me like BigInt objects aren't necessarily easily interoperable with Number objects, but it would be nice to specify the design tradeoffs and issues somewhere. I don't see BigInt mentioned anywhere in the issues or docs. |
For reference, Bokeh began in 2012, but Edit: it's worth noting that even three years ago when I started the discussion linked above, that |
We don't have any design documentation for this, because only recently The biggest issue with On top of that, JavaScript doesn't offer operator overloading, so it isn't possible to create generic, readable/idiomatic and performant code that would work with both number types. Another issue is performance. Based on some on-line benchmarks, |
That's all precisely the design considerations I was looking for, thanks! Not sure if this issue is the best place for it, but certainly better to have it here than not! Thanks so much. |
Software versions
Python version : 3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:07:37) [GCC 12.3.0]
IPython version : 8.18.1
Tornado version : 6.3.3
Bokeh version : 3.3.1
BokehJS static path : /home/jernej_m/mambaforge-pypy3/envs/TEST/lib/python3.10/site-packages/bokeh/server/static
node.js version : v20.9.0
npm version : 10.1.0
jupyter_bokeh version : 2.0.4
Operating system : Linux-6.1.64-1-MANJARO-x86_64-with-glibc2.38
Browser name and version
Chromiumjupy
Jupyter notebook / Jupyter Lab version
4.0.9
Expected behavior
Plot without warnings
Observed behavior
BokehUserWarning: out of range integer may result in loss of precision
Example code
Stack traceback or browser console output
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: