Skip to content
Discussion options

You must be logged in to vote

The large file is coming from offline_bundle=true.

In the current code, Pluto.generate_html(...; offline_bundle=false) is the default. When offline_bundle=true, Pluto uses the frontend-dist-offline bundle and inlines assets as data URLs, which is exactly the behavior that makes the export self-contained and much larger.

The UI export link currently asks for:

notebookexport_url={this.export_url("notebookexport", { offline_bundle: "true" })}

so the normal browser export path is intentionally using the offline bundle.

Workarounds:

  • Programmatic export: call Pluto.generate_html(notebook; offline_bundle=false) if you are exporting from Julia code.
  • Browser/manual export: request /notebookexport…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Jollywatt
Comment options

You must be logged in to vote
2 replies
@cookesan
Comment options

@Jollywatt
Comment options

Comment options

You must be logged in to vote
1 reply
@Jollywatt
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants