GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add <!doctype html> to the to_html template by emilykl · Pull Request #5693 · plotly/plotly.py

Conversation

@emilykl

@emilykl emilykl commented Aug 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Link to issue

Closes #4847

Continuation of PR #4848 by @mishrakushal

Description of change

Add <!doctype html> at top of HTML template for compliance with modern web standards.

Demo

n/a

Testing strategy

Call fig.to_html() and verify that the generated HTML file has <!doctype html> at the very top.

Additional information (optional)

Updated unit tests accordingly.

Note: Adding <!doctype html> changed the chart rendering behaviour and made charts render at 450px high rather than filling the browser window. To keep the existing behaviour, this PR adds a small HTML snippet to the template:

<style>html, body {{height: 100%;}}</style>

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
“mishrakushal” @emilykl
Added <!doctype html> to the to_html template
03feb92
@emilykl emilykl mentioned this pull request Aug 6, 2026
Added <!doctype html> to the to_html template #4848
Closed
7 of 23 tasks
@emilykl
emilykl force-pushed the mishrakushal-add-doctype-to_html branch from 473f83a to 2e67205 Compare August 6, 2026 22:38
@emilykl
emilykl requested a review from camdecoster August 6, 2026 22:42
camdecoster
camdecoster previously approved these changes Aug 6, 2026
View reviewed changes

@camdecoster camdecoster left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏄

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@emilykl
emilykl dismissed camdecoster’s stale review via 0d0e641 August 6, 2026 23:33
@emilykl
emilykl force-pushed the mishrakushal-add-doctype-to_html branch from 2e67205 to 0d0e641 Compare August 6, 2026 23:33
emilykl added 3 commits August 6, 2026 19:59
@emilykl
update tests
bb7f739
@emilykl
update changelog
734520b
@emilykl
run formatter
3cec990
@emilykl
emilykl force-pushed the mishrakushal-add-doctype-to_html branch from 0d0e641 to 3cec990 Compare August 7, 2026 00:00
emilykl added 2 commits August 7, 2026 00:04
@emilykl
maintain existing behavior
901ca73
@emilykl
changelog formatting
26da2aa
camdecoster
camdecoster approved these changes Aug 7, 2026
View reviewed changes
@emilykl
emilykl merged commit 33892af into main Aug 7, 2026
25 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@emilykl
emilykl deleted the mishrakushal-add-doctype-to_html branch August 7, 2026 15:07
@emilykl emilykl mentioned this pull request Sep 3, 2026
Set full_html=False for Google Colab renderer #5718
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@camdecoster camdecoster camdecoster approved these changes

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.

Allow (or switch to) generating html that starts with <!doctype html> when using to_html(full_html=True)

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@emilykl @camdecoster
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.