Skip to content

Remove "try in browser with WebAssembly" link in static notebooks #6318

@wgpsutherland

Description

@wgpsutherland

When running a notebook that has been exported/downloaded as HTML from edit mode, there is a banner that links to a popup that allows you to "Try in browser with WebAssembly". This url encodes the entire code contents of the notebook, and if clicked will send all of this code to marimo's servers (marimo.app).

This is a big risk for those who are running marimo and who cannot have their IP/code sent outside of their infrastructure. And this link is very easily clicked, even accidentally.

It would be good for us if there could be a mechanism when running marimo (edit mode or run mode) to prevent exported/downloaded notebooks from having this banner/link present. Otherwise we will have to block the marimo.app domain, which would be a shame as it would break the marimo docs website.


banner:
Image

code in link:
Image

code locations:
https://github.com/marimo-team/marimo/blob/main/frontend/src/components/static-html/static-banner.tsx#L69
https://github.com/marimo-team/marimo/blob/main/frontend/src/core/wasm/share.ts#L8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions