Title: allow plotly.js to accept numpy buffers · Issue #1784 · plotly/plotly.js · GitHub
Open Graph Title: allow plotly.js to accept numpy buffers · Issue #1784 · plotly/plotly.js
X Title: allow plotly.js to accept numpy buffers · Issue #1784 · plotly/plotly.js
Description: If we allowed all GL plot types to accept numpy buffers for plot x/y/z data, then the Python library could optionally avoid JSON serialization of array data, like @maartenbreddels does in his brillant project ipyvolume: https://github.co...
Open Graph Description: If we allowed all GL plot types to accept numpy buffers for plot x/y/z data, then the Python library could optionally avoid JSON serialization of array data, like @maartenbreddels does in his brill...
X Description: If we allowed all GL plot types to accept numpy buffers for plot x/y/z data, then the Python library could optionally avoid JSON serialization of array data, like @maartenbreddels does in his brill...
Opengraph URL: https://github.com/plotly/plotly.js/issues/1784
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"allow plotly.js to accept numpy buffers","articleBody":"If we allowed all GL plot types to accept numpy buffers for plot x/y/z data, then the Python library could optionally avoid JSON serialization of array data, like @maartenbreddels does in his brillant project ipyvolume:\r\n\r\nhttps://github.com/maartenbreddels/ipyvolume/blob/master/ipyvolume/serialize.py#L95\r\n\r\nHere is the deserialization on the JS side:\r\n\r\nhttps://github.com/maartenbreddels/ipyvolume/blob/master/js/src/serialize.js#L16\r\n\r\nPlotly.js has all of these incredible WebGL figures for scientific computing, but their potential in Python, R, MATLAB, etc is limited by the JSON serialization step.\r\n\r\nIn a similar vein, it seems like all GL types should be able to accept Float32Array's directly instead of untyped JS arrays. Currently, it looks like only the Plotly trace type `pointcloud` accepts Float32Array's:\r\n\r\nhttps://codepen.io/plotly/pen/GEoPgv\r\n","author":{"url":"https://github.com/jackparmer","@type":"Person","name":"jackparmer"},"datePublished":"2017-06-14T02:58:43Z","url":"https://github.com/plotly/plotly.js/issues/1784"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a0540c54-1105-a304-1c94-8b6754125057 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFC2:22DB35:FAA15B:1426EC1:6B01004D |
| html-safe-nonce | a7a0faff0efdbe4ea87be9c7f2d00448c6b32d205d7494ee91e06a875d68b23c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkMyOjIyREIzNTpGQUExNUI6MTQyNkVDMTo2QjAxMDA0RCIsInZpc2l0b3JfaWQiOiI3OTEyOTUxNzgxMTk2MzY1OTAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5561c8fd783124745483552d2af62f86b492cbc7a2f42bebc947123c4f8de022 |
| hovercard-subject-tag | issue:235748847 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/1784/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3361d3ef28df96d7f3d9610bdafd91cc4c0a57e038fd432b704766d45fd4f461/plotly/plotly.js/issues/1784 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3361d3ef28df96d7f3d9610bdafd91cc4c0a57e038fd432b704766d45fd4f461/plotly/plotly.js/issues/1784 |
| og:image:alt | If we allowed all GL plot types to accept numpy buffers for plot x/y/z data, then the Python library could optionally avoid JSON serialization of array data, like @maartenbreddels does in his brill... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jackparmer |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width