the static files issue¶
as of 2026 may, there is no provision to include static files in the mystmd output
not implicit like
_staticin jb1/sphinxand not even explicit; one coud imagine something like a
staticdefinition in the frontmatter, but no
so most of the examples below are not working simply because we try to refer to local assets, but we can’t...
so in order to focus on the matter at hand (how to render iframes) independently of the static files issue, we’ll use a remote url for the examples below
tl - dr¶
remote URLs are OK
for locally shipped htmls (e.g. folium-produced maps), as of 2025 march:
jlab is mostly OK
jb2: I can’t find the URL to retrieve them - whether we put them in
_staticor inmedia...
raw HTML iframe: suboptimal !¶
possible to use IPython’s IFrame instead¶
from IPython.display import IFrame
IFrame("https://jupyterlab-examples.info-mines.paris", "200px", "200px")Loading...
with a local URL
from IPython.display import IFrame
IFrame("media/addresses-final.html", "200px", "200px")Loading...
mystmd iframe¶
cannot set height - and width either apparently...