Meta tags:
description= Summary to_typed_array_spec (_plotly_utils/utils.py:84) does: arrObj = dtype : plotlyjsShortTypes[dtype], bdata : base64.b64encode(v).decode( ascii ), with no explicit byte-order normalization before encoding, so bdata follows what...;
Headings (most frequently used words):
navigation, endian, on, metadata, footer, to_typed_array_spec, encodes, bdata, in, host, byte, order, plotly, js, always, decodes, it, as, little, 5837, menu, repository, description, summary, repro, confirmed, real, big, hardware, os, s390x, numpy, suggested, fix, activity, issue, actions, camdecoster, commented, oct, 26, 2026, assignees, labels, type, projects, milestone, relationships, development,
Text of the page (most frequently used words):
github (14), and (10), the (9), bdata (9), plotly (9), for (8), dtype (8), #endian (8), order (7), issue (6), something (6), broken (6), backlog (6), base64 (6), host (6), to_typed_array_spec (6), this (5), security (5), 2026 (5), copilot (5), actions (5), sign (5), little (5), with (5), byte (5), code (5), you (4), oct (4), print (4), browser (4), float64array (4), decodes (4), always (4), your (4), support (4), navigation (3), open (3), projects (3), size (3), bug (3), camdecoster (3), b64encode (3), before (3), big (3), read (3), as_little (3), spec (3), import (3), array (3), new (3), copy (3), link (3), 5837 (3), encodes (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), all (3), build (3), can (2), that (2), not (2), community (2), status (2), footer (2), pull (2), requests (2), development (2), milestone (2), type (2), labels (2), one (2), metadata (2), review (2), more (2), as_little_fixed (2), array_equal (2), raw_fixed (2), frombuffer (2), bdata_fixed (2), b64decode (2), ascii (2), decode (2), v_fixed (2), newbyteorder (2), astype (2), encoding (2), hardware (2), decoded (2), would (2), matches (2), original (2), what (2), reads (2), raw (2), utils (2), _plotly_utils (2), numpy (2), real (2), which (2), platform (2), native (2), explicit (2), 5838 (2), insights (2), 649 (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, contact, docs, privacy, terms, inc, app, branches, none, yet, relationships, assigned, assignees, comment, already, have, account, join, conversation, free, added, thanks, adding, follow, respond, there, contributor, commented, activity, originally, spotted, 5833, chrikrah, true, normalize, immediately, call, verified, resolves, same, suggested, fix, any, produces, charts, silently, corrupted, numeric, data, gzmzmzmzpaamzmzmzmzkamaaaaaaaa, 54234871e, 180, 90359857e, 185, 54938987e, 320, false, output, from, through, actual, function, just, standalone, simulation, repro, confirmed, s390x, every, means, ships, bytes, correctly, buffer, normalization, follows, whatever, naturally, has, built, without, prefix, plotlyjsshorttypes, arrobj, does, summary, body, opened, vikram12301, description, items, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, next, partners, about, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, add, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, menu, skip, content,
Text of the page (random words):
to_typed_array_spec encodes bdata in host byte order plotly js always decodes it as little endian issue 5837 plotly plotly py github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message plotly plotly py repository navigation code issues 649 649 pull requests 87 87 actions security and quality insights more items to_typed_array_spec encodes bdata in host byte order plotly js always decodes it as little endian 5837 new issue copy link new issue copy link open 5838 open to_typed_array_spec encodes bdata in host byte order plotly js always decodes it as little endian 5837 5838 copy link labels p3 backlog backlog bug something broken something broken size 1 description vikram12301 opened on oct 22 2026 issue body actions summary to_typed_array_spec _plotly_utils utils py 84 does arrobj dtype plotlyjsshorttypes dtype bdata base64 b64encode v decode ascii with no explicit byte order normalization before encoding so bdata follows whatever byte order the array s dtype naturally has which for an array built without an explicit prefix is the host s native order plotly js decodes bdata with new float64array buffer which always reads in the platform s native order little endian in every real browser on a big endian host this means bdata ships bytes that no browser can read correctly repro confirmed on real big endian hardware z os s390x numpy 2 5 3 through the actual function not just a standalone simulation import numpy as np from _plotly_utils utils import to_typed_array_spec v np array 1 1 2 3 3 5 spec to_typed_array_spec v print spec import base64 raw base64 b64decode spec bdata as_little np frombuffer raw dtype f8 what plotly js s float64array reads print decoded as browser float64array would read it as_little print matches original np array_equal v as_little output dtype f8 bdata p gzmzmzmzpaamzmzmzmzkamaaaaaaaa decoded as browser float64array would read it 1 54234871e 180 1 90359857e 185 1 54938987e 320 matches original false so any big endian host produces charts with silently corrupted numeric data suggested fix normalize v to little endian before encoding e g v v astype v dtype newbyteorder immediately before the base64 b64encode v call verified this resolves it on the same hardware v_fixed v astype v dtype newbyteorder bdata_fixed base64 b64encode v_fixed decode ascii raw_fixed base64 b64decode bdata_fixed as_little_fixed np frombuffer raw_fixed dtype f8 print np array_equal v as_little_fixed true originally spotted by chrikrah in 5833 activity camdecoster commented on oct 26 2026 camdecoster on oct 26 2026 contributor more actions thanks for adding this follow up issue i ll review the pr and respond there camdecoster added bug something broken something broken p3 backlog backlog size 1 on oct 26 2026 sign up for free to join this conversation on github already have an account sign in to comment metadata metadata assignees no one assigned labels p3 backlog backlog bug something broken something broken size 1 type no type projects no projects milestone no milestone relationships none yet development no branches or pull requests issue actions open in github copilot app footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|