Meta tags:
description= Description sample_colorscale and n_colors raise ZeroDivisionError when asked for one color. This breaks palettes sized to a dataset s group count when there is exactly one group. Both helpers divide by the requested count minus one. Exp...;
Headings (most frequently used words):
navigation, description, metadata, footer, bug, single, color, requests, raise, zerodivisionerror, in, palette, helpers, 5805, menu, repository, activity, issue, actions, screenshots, video, steps, to, reproduce, notes, camdecoster, commented, on, oct, 13, 2026, assignees, labels, type, projects, milestone, relationships, development,
Text of the page (most frequently used words):
github (14), and (11), for (9), the (9), #zerodivisionerror (7), #requests (6), something (6), broken (6), bug (6), backlog (6), one (6), plotly (6), color (6), sample_colorscale (6), n_colors (6), you (5), security (5), 2026 (5), copilot (5), issue (5), actions (5), sign (5), code (5), oct (4), with (4), raise (4), helpers (4), your (4), support (4), this (3), navigation (3), open (3), projects (3), type (3), size (3), camdecoster (3), zero (3), error (3), label (3), copy (3), link (3), 5805 (3), single (3), palette (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), community (2), status (2), footer (2), pull (2), development (2), milestone (2), labels (2), metadata (2), already (2), review (2), opened (2), more (2), expected (2), division (2), print (2), call (2), lambda (2), from (2), when (2), group (2), count (2), description (2), 5882 (2), new (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, that, action, time, not, share, personal, information, manage, cookies, contact, docs, privacy, terms, inc, app, branches, none, yet, relationships, assigned, assignees, comment, have, account, join, conversation, free, added, thanks, report, provide, some, feedback, contributor, commented, activity, reproduced, current, main, python, windows, amd64, return, empty, lists, 3f8a650930feadfdb651cd869ffe3e85fd093885, notes, rgb, float, actual, str, __name__, except, try, viridis, import, colors, steps, reproduce, api, calls, fail, before, figure, created, output, shown, below, screenshots, video, start, interval, consistent, their, existing, first, sample, lowcolor, low, asked, breaks, palettes, sized, dataset, there, exactly, both, divide, requested, minus, body, mokimeow, items, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, what, 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, platform, menu, skip, content,
Text of the page (random words):
bug single color requests raise zerodivisionerror in palette helpers issue 5805 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 bug single color requests raise zerodivisionerror in palette helpers 5805 new issue copy link new issue copy link open 5882 open bug single color requests raise zerodivisionerror in palette helpers 5805 5882 copy link labels p3 backlog backlog bug something broken something broken size 1 description mokimeow opened on oct 10 2026 issue body actions description sample_colorscale and n_colors raise zerodivisionerror when asked for one color this breaks palettes sized to a dataset s group count when there is exactly one group both helpers divide by the requested count minus one expected one color from the start of the interval low lowcolor consistent with their existing first sample screenshots video the api calls fail before a figure can be created the output is shown below steps to reproduce from plotly colors import n_colors sample_colorscale for label call in sample_colorscale lambda sample_colorscale viridis 1 n_colors lambda n_colors 0 0 0 1 1 1 1 try print label call except zerodivisionerror as error print label type error __name__ str error actual sample_colorscale zerodivisionerror division by zero n_colors zerodivisionerror float division by zero expected sample_colorscale rgb 68 1 84 n_colors 0 0 0 0 0 0 notes reproduced with plotly 7 1 0 current main 3f8a650930feadfdb651cd869ffe3e85fd093885 python 3 12 10 windows amd64 zero color requests already return empty lists activity camdecoster commented on oct 13 2026 camdecoster on oct 13 2026 contributor more actions thanks for the report i ll review the pr you opened and provide some feedback camdecoster added bug something broken something broken p3 backlog backlog size 1 on oct 13 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
|