René's URL Explorer Experiment


Title: [BUG]: Table string cells render as NaN when cells.format is set before initial render, but Plotly.restyle renders correctly · Issue #5617 · plotly/plotly.py · GitHub

Open Graph Title: [BUG]: Table string cells render as NaN when cells.format is set before initial render, but Plotly.restyle renders correctly · Issue #5617 · plotly/plotly.py

X Title: [BUG]: Table string cells render as NaN when cells.format is set before initial render, but Plotly.restyle renders correctly · Issue #5617 · plotly/plotly.py

Description: Description When initializing a Plotly go.Table with string cell values such as "rgb(239, 243, 255)" and setting cells.format=[1] before the first render, the string values are displayed as NaN. However, if the same base table is rendere...

Open Graph Description: Description When initializing a Plotly go.Table with string cell values such as "rgb(239, 243, 255)" and setting cells.format=[1] before the first render, the string values are displayed as NaN. Ho...

X Description: Description When initializing a Plotly go.Table with string cell values such as "rgb(239, 243, 255)" and setting cells.format=[1] before the first render, the string values are displayed ...

Opengraph URL: https://github.com/plotly/plotly.py/issues/5617

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: Table string cells render as NaN when cells.format is set before initial render, but Plotly.restyle renders correctly","articleBody":"### Description\n\nWhen initializing a Plotly `go.Table` with string cell values such as\n`\"rgb(239, 243, 255)\"` and setting `cells.format=[1]` before the first render, the\nstring values are displayed as `NaN`.\n\nHowever, if the same base table is rendered first and the same `cells.format` value\nis then applied dynamically through `Plotly.restyle`, the table displays the original\nstring values correctly.\n\nThe setting is accepted by `plotly.py` and stored on the trace object, so this looks\nlike an initial-render formatting/coercion discrepancy in table traces rather than an\ninvalid Python-side property assignment.\n\n### Screenshots/Video\n\n\u003cimg width=\"1200\" height=\"800\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/a6b5eb16-aea8-4d9e-828b-10550123f1b3\" />\n\u003cimg width=\"1200\" height=\"800\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/037b1dc9-a540-49cb-bb8c-3e434ec69bbf\" />\n\n### Steps to reproduce\n\n\n```python\nimport io\n\nimport plotly\nimport plotly.graph_objects as go\nimport plotly.io as pio\nfrom PIL import Image, ImageChops\nfrom playwright.sync_api import sync_playwright\n\n\nprint(f\"Plotly version: {plotly.__version__}\")\n\nfig = go.Figure(\n    go.Table(\n        header={\"values\": [\"Color\"]},\n        cells={\"values\": [[\"rgb(239, 243, 255)\", \"rgb(8, 81, 156)\"]]},\n    )\n)\n\n# Screenshot 1 / plot1.png: set cells.format in Python before the initial render.\nfig.data[0].cells.format = [1]\nassert fig.data[0].cells.format == (1,)\nprint(\"Python-side cells.format:\", fig.data[0].cells.format)\nhtml1 = pio.to_html(fig, full_html=True, include_plotlyjs=\"cdn\")\n\n# Screenshot 2 / plot2.png: render first, then apply the same value with JS.\nfig.data[0].cells.format = None\nhtml2 = pio.to_html(fig, full_html=True, include_plotlyjs=\"cdn\")\nhtml2 = html2.replace(\n    \"\u003c/body>\",\n    \"\"\"\n\u003cscript>\nwindow.addEventListener(\"DOMContentLoaded\", () => {\n    const plotEl = document.getElementsByClassName(\"plotly-graph-div\")[0];\n    setTimeout(() => {\n        Plotly.restyle(plotEl, {\"cells.format\": [1]}, [0]);\n    }, 1000);\n});\n\u003c/script>\n\u003c/body>\"\"\",\n)\n\nwith sync_playwright() as playwright:\n    browser = playwright.chromium.launch(\n        headless=True,\n        args=[\"--no-sandbox\", \"--disable-dev-shm-usage\", \"--disable-gpu\"],\n    )\n    page = browser.new_page(viewport={\"width\": 1200, \"height\": 800})\n\n    page.set_content(html1)\n    page.wait_for_timeout(1500)\n    img1 = page.screenshot(path=\"plot1.png\")\n\n    page.set_content(html2)\n    page.wait_for_timeout(2000)\n    img2 = page.screenshot(path=\"plot2.png\")\n\n    browser.close()\n\ndiff = ImageChops.difference(\n    Image.open(io.BytesIO(img1)).convert(\"RGB\"),\n    Image.open(io.BytesIO(img2)).convert(\"RGB\"),\n)\n\nprint(\"Saved plot1.png and plot2.png\")\nassert diff.getbbox() is not None, \"Reproducer did not reproduce: images are identical.\"\n```\n\n### Notes\n\n_Add info here that doesn't fit in the other sections._\n","author":{"url":"https://github.com/ym-xie","@type":"Person","name":"ym-xie"},"datePublished":"2026-06-07T15:11:51Z","url":"https://github.com/plotly/plotly.py/issues/5617"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9bb6e1ca-3833-3df8-f217-2d6397e59009
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBA52:785A9:2B7B304:37389B2:6B01AE4E
html-safe-nonce9f8a8ca30f6430585946548be5ccaaedb4edc811cb0d610ffc840075579150a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTUyOjc4NUE5OjJCN0IzMDQ6MzczODlCMjo2QjAxQUU0RSIsInZpc2l0b3JfaWQiOiIxNTk1ODE0NTg2ODkwNjk0MjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac36fe6710542ba9eebc4ccf9643ea5f3e4b70169a45b185950ed855fa24c811ce
hovercard-subject-tagissue:4607753721
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.py/5617/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fdcae23dc5c2abf9041aeb73d20972d759333995c01906dc6b1888328a11621c/plotly/plotly.py/issues/5617
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fdcae23dc5c2abf9041aeb73d20972d759333995c01906dc6b1888328a11621c/plotly/plotly.py/issues/5617
og:image:altDescription When initializing a Plotly go.Table with string cell values such as "rgb(239, 243, 255)" and setting cells.format=[1] before the first render, the string values are displayed as NaN. Ho...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameym-xie
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id14579099
octolytics-dimension-repository_nwoplotly/plotly.py
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14579099
octolytics-dimension-repository_network_root_nwoplotly/plotly.py
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.py/issues/5617#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F5617
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F5617
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.py
Reloadhttps://github.com/plotly/plotly.py/issues/5617
Reloadhttps://github.com/plotly/plotly.py/issues/5617
Reloadhttps://github.com/plotly/plotly.py/issues/5617
plotlyhttps://github.com/plotly
plotly.pyhttps://github.com/plotly/plotly.py
Codehttps://github.com/plotly/plotly.py
Issues650 (650)https://github.com/plotly/plotly.py/issues
Pull requests83 (83)https://github.com/plotly/plotly.py/pulls
Actionshttps://github.com/plotly/plotly.py/actions
Security and qualityhttps://github.com/plotly/plotly.py/security
Insightshttps://github.com/plotly/plotly.py/insights
https://github.com/plotly/plotly.py
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/5617
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/5617
[BUG]: Table string cells render as NaN when cells.format is set before initial render, but Plotly.restyle renders correctlyhttps://github.com/plotly/plotly.py/issues/5617#top
plotly/plotly.js#8178https://github.com/plotly/plotly.js/pull/8178
P3backloghttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P3%22
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
good for agentGood issue for an agent to solvehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22good%20for%20agent%22
size: 3https://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22size%3A%203%22
https://github.com/ym-xie
ym-xiehttps://github.com/ym-xie
on Jun 7, 2026https://github.com/plotly/plotly.py/issues/5617#issue-4607753721
https://private-user-images.githubusercontent.com/52962534/604078766-a6b5eb16-aea8-4d9e-828b-10550123f1b3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNzI1NzAsIm5iZiI6MTc5NTI3MjI3MCwicGF0aCI6Ii81Mjk2MjUzNC82MDQwNzg3NjYtYTZiNWViMTYtYWVhOC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NTBjOTJmZTdlNTA4NmY0M2VmZjg3ODNhNDE1NTBlYmFmMmJjMzg1NDA1MGM4OTkxZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.DTudoJtZ8WZq6qm4ID_evtImPJiw_i2J9oASnR4Pv6o
ym-xiehttps://github.com/ym-xie
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
on Jun 7, 2026https://github.com/plotly/plotly.py/issues/5617#event-26441956125
https://github.com/robertclaus
robertclaushttps://github.com/robertclaus
on Jun 17, 2026https://github.com/plotly/plotly.py/issues/5617#issuecomment-4732603070
robertclaushttps://github.com/robertclaus
P3backloghttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P3%22
size: 3https://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22size%3A%203%22
good for agentGood issue for an agent to solvehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22good%20for%20agent%22
on Aug 4, 2026https://github.com/plotly/plotly.py/issues/5617#event-28971138133
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.py/issues/5617
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/5617
P3backloghttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22P3%22
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
good for agentGood issue for an agent to solvehttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22good%20for%20agent%22
size: 3https://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22size%3A%203%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.