Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

the static files feature

as of 2026 june and myst 1.10, there is now a way to include static files in the mystmd output

so we’re going to use a static resource called folium.html that sits in the source repo in _static/folium.html and that is declared as a static file in myst.yml:

project:
  static_files:
    - _static

With this setting:

In the examples below we focus on rendering an iFrame, and we’ll use this folium-generated content as the source

raw HTML iframe: suboptimal !

use IPython’s IFrame instead

If you happen to use a Python kernel, this alternative seems to be the only way apparently to have control on both sizes; can’t center it though ?

Loading...

mystmd iframe

likewise, no control on sizes in mystmd: