site address:
github.com/plotly/plotly.py/pull/5856 redirected to: github.com/plotly/plotly.py/pull/5856
site title:
Accept None elements in color, number and angle arrays so from_json loads figures with NaN by Thanatos9404 · Pull Request #5856 · plotly/plotly.py · GitHub
|
|
|
Our opinion (on Wednesday 18 November 2026 4:33:20 UTC):
- no comments
|
|
|
|
After content analysis of this website we propose the following hashtags:
|
|
|
|
Meta tags:
description= The interactive graphing library for Python :sparkles: - Accept None elements in color, number and angle arrays so from_json loads figures with NaN by Thanatos9404 · Pull Request #5856 · plotly/plotly.py;
Headings (most frequently used words):
nan, navigation, to, uh, oh, accept, none, elements, in, color, number, and, angle, arrays, so, from_json, loads, figures, with, plotly, py, thanatos9404, fix, from, json, branch, footer, 5856, menu, repository, 5856thanatos9404, wants, merge, commits, intoplotly, mainplotly, mainfrom, arraysthanatos9404, arrayscopy, head, name, clipboard, conversation, commented, oct, 31, 2026, link, issue, description, of, change, demo, testing, strategy, additional, information, optional, guidelines, this, has, not, been, deployed, reviewers, assignees, labels, projects, milestone, development, participant,
Text of the page (most frequently used words):
and (31), the (22), this (20), nan (19), none (19), #plotly (15), #arrays (14), that (13), github (13), for (12), with (12), applied (11), color (11), marker (10), thanatos9404 (9), code (8), elements (8), main (8), tests (8), not (7), suggestion (7), cannot (7), suggestions (7), from (7), to_json (7), while (6), pull (6), reload (6), from_json (6), lists (6), angle (6), you (5), can (5), security (5), request (5), sign (5), branch (5), changelog (5), loads (5), accept (5), all (5), please (4), check (4), change (4), invalid (4), these (4), already (4), what (4), figures (4), are (4), number (4), commits (4), such (4), copy (4), fix (4), json (4), 5856 (4), your (4), support (4), copilot (4), navigation (3), 2026 (3), now (3), back (3), merge (3), line (3), add (3), batch (3), one (3), because (3), there (3), was (3), error (3), loading (3), page (3), have (3), conversation (3), hidden (3), characters (3), file (3), unicode (3), open (3), learn (3), link (3), null (3), rejected (3), inside (3), keep (3), unchanged (3), documentation (3), property (3), accepted (3), they (3), figure (3), scatter (3), import (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), customer (3), enterprise (3), grade (3), features (3), build (3), information (2), community (2), status (2), footer (2), reviews (2), has (2), been (2), single (2), commit (2), only (2), changes (2), may (2), issues (2), development (2), milestone (2), yet (2), projects (2), bidirectional (2), review (2), more (2), about (2), entry (2), writes (2), colorvalidator (2), numbervalidator (2), anglevalidator (2), could (2), loaded (2), again (2), scalars (2), added (2), guidelines (2), where (2), also (2), since (2), place (2), still (2), size (2), numpy (2), inputs (2), round (2), optional (2), windows (2), fail (2), new (2), validators (2), without (2), colorscale (2), element (2), next (2), bar (2), offset (2), fig2 (2), fig (2), pio (2), issue (2), wants (2), into (2), head (2), name (2), clipboard (2), insights (2), actions (2), 649 (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, manage, cookies, contact, docs, privacy, terms, inc, right, later, queued, multi, comments, pending, marked, resolved, outdated, must, existing, order, create, valid, applying, deleted, lines, supported, per, viewing, subset, closed, were, made, participant, does, handle, properly, successfully, merging, close, labels, assigned, assignees, reviewers, account, comment, join, free, show, contains, text, interpreted, compiled, differently, than, appears, below, editor, reveals, deployments, deployed, 75d96bb, which, 8aa4aa8, october, reactions, sorry, something, went, wrong, needed, required, prs, reviewed, confirm, follows, them, conduct, their, meaning, means, unset, its, hold, first, integervalidator, used, raise, bounded, properties, when, built, those, never, reach, leaves, test_rejection_aok_min_max, opacity, textfont, red, newly, pandas, polars, trip, serialized, typed, tuples, hit, bdata, worked, additional, locally, python, ran, same, environment, mostly, packages, statsmodels, aren, installed, plus, encoding, errors, offline, html, nothing, else, fails, passes, ruff, format, test_optional, test_plotly_utils, test_io, test_core, validator, kept, three, object, colors, min, max, reported, trips, containing, pass, test_from_json_nan_in_arrays, testing, strategy, data, include, valueerror, received, graph_objects, demo, list, accepts, written, but, suggested, receives, values, today, sends, gets, drawn, doesn, description, 4280, closes, markdown, commented, oct, files, changed, checks, items, requests, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, 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, platform, menu, skip, content,
Text of the page (random words):
accept none elements in color number and angle arrays so from_json loads figures with nan by thanatos9404 pull request 5856 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 accept none elements in color number and angle arrays so from_json loads figures with nan 5856 5856 open thanatos9404 wants to merge 2 commits into plotly main plotly plotly py main from thanatos9404 fix from json nan arrays thanatos9404 plotly py fix from json nan arrays copy head branch name to clipboard conversation commits 2 2 checks files changed open accept none elements in color number and angle arrays so from_json loads figures with nan 5856 thanatos9404 wants to merge 2 commits into plotly main plotly plotly py main from thanatos9404 fix from json nan arrays thanatos9404 plotly py fix from json nan arrays copy head branch name to clipboard conversation thanatos9404 commented oct 31 2026 copy link copy markdown link to issue closes 4280 description of change to_json writes nan as null and from_json loads that back as none colorvalidator numbervalidator and anglevalidator rejected none inside lists so a figure with nan in a list for a property that accepts nan such as marker color 0 np nan with a colorscale marker angle or a bar offset could be written with to_json but not loaded again as suggested in the issue these validators now accept and keep none elements inside arrays plotly js already receives null for these values today since that is what to_json sends so what gets drawn doesn t change demo import numpy as np import plotly graph_objects as go import plotly io as pio fig go figure go scatter x 0 0 y 0 1 marker color 0 np nan fig2 pio from_json fig to_json main valueerror invalid element s received for the color property of scatter marker invalid elements include none this branch fig2 data 0 marker color 0 none testing strategy new validator tests check that none elements are accepted and kept in lists for all three validators and in object arrays for colors with and without min max or a colorscale they also check that an invalid element next to a none is still reported without the none test_from_json_nan_in_arrays round trips a scatter marker color and marker angle and a bar offset containing nan the new tests fail on main and pass with this change locally windows python 3 12 i ran tests test_core tests test_io tests test_plotly_utils and tests test_optional the same 53 tests fail on main and on this branch in this environment mostly because optional packages such as statsmodels aren t installed plus windows file encoding errors in the offline html tests nothing else fails ruff format check passes additional information optional inputs that already worked numpy pandas and polars inputs already round trip on main because they are serialized as typed arrays bdata only lists and tuples hit this newly accepted lists such as marker size 1 none or textfont color red none are now accepted where they used to raise nan in the arrays of bounded properties such as marker size and marker opacity is still rejected when the figure is built test_rejection_aok_min_max so those never reach to_json with a nan this pr leaves that as it is unchanged scalars keep their meaning where none means the property is unset integervalidator is also unchanged since its lists can t hold nan in the first place guidelines i have reviewed the pull request guidelines and the code of conduct and confirm that this pr follows them i have added an entry to the changelog if needed not required for documentation prs sorry something went wrong uh oh there was an error while loading please reload this page all reactions thanatos9404 added 2 commits october 31 2026 09 20 accept none elements in color number and angle arrays 8aa4aa8 to_json writes nan as null and from_json loads it back as none which colorvalidator numbervalidator and anglevalidator rejected inside lists so figures with nan in these arrays could not be loaded again keep none elements in arrays scalars are unchanged link the changelog entry to the pr 75d96bb this branch has not been deployed no deployments this file contains hidden or bidirectional unicode text that may be interpreted or compiled differently than what appears below to review open the file in an editor that reveals hidden unicode characters learn more about bidirectional unicode characters show hidden characters sign up for free to join this conversation on github already have an account sign in to comment reviewers no reviews uh oh there was an error while loading please reload this page assignees no one assigned labels none yet projects none yet milestone no milestone development successfully merging this pull request may close these issues to_json does not handle color as np nan properly uh oh there was an error while loading please reload this page 1 participant add this suggestion to a batch that can be applied as a single commit this suggestion is invalid because no changes were made to the code suggestions cannot be applied while the pull request is closed suggestions cannot be applied while viewing a subset of changes only one suggestion per line can be applied in a batch add this suggestion to a batch that can be applied as a single commit applying suggestions on deleted lines is not supported you must change the existing code in this line in order to create a valid suggestion outdated suggestions cannot be applied this suggestion has been applied or marked resolved suggestions cannot be applied from pending reviews suggestions cannot be applied on multi line comments suggestions cannot be applied while the pull request is queued to merge suggestion cannot be applied right now please check back later 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
|
|
| Thumbnail images (randomly selected): * Images may be subject to copyright. | |  |
|
Verified site has: 59 subpage(s). Do you want to verify them? Verify pages:
|
The site also has references to the 4 subdomain(s)
|
The site also has 5 references to external domain(s).
|
|
|
Pages verified in the last hours (randomly selected):
|
|
Top 50 hastags from of all verified websites.
| |
|
|
|
|
|
|
Load Info| page size | 53985 | | load time (s) | 0.763374 | | redirect count | 1 | | speed download | 70753 | | server IP | 4.163.8.144 |
|
|
|
|
|
|
|
|
* Image may be subject to copyright.
|
|