Skip to content

Add option to embed JS in HTML report - #441

Merged
wdecoster merged 3 commits into
wdecoster:masterfrom
dpryan79:includeJS
Sep 5, 2026
Merged

wdecoster merged 3 commits into
wdecoster:masterfrom
dpryan79:includeJS

Conversation

@dpryan79

@dpryan79 dpryan79 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Sometimes I need to generate fully self-contained reports, such as when the people looking at them are behind firewalls that block external connections. In such cases the default mechanism of sourcing plotly javascript from a CDN doesn't work and it instead needs to be embedded in the HTML report. This PR add an option that will implement that, while keeping the current mechanism of using a CDN instead as the default.

Devon Ryan and others added 3 commits September 4, 2026 17:52
…avascript should be included (useful in restricted-access scenarios)
sequencing_speed_over_time accessed settings.include_js while settings is
a dict everywhere else, crashing every run that makes time plots.

Also place the embedded plotly.js inside <body> rather than between
</head> and <body>, and write individual plot html files with the
javascript included, since the shared html deliberately carries none.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1T5vKqLLmxjb93BEZ9aSn
@wdecoster

Copy link
Copy Markdown
Owner

Hi Devon! Good idea, thanks!

@wdecoster
wdecoster merged commit 4ced198 into wdecoster:master Sep 5, 2026
1 check passed
@dpryan79
dpryan79 deleted the includeJS branch September 6, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants