raw HTML iframe: NO !¶
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
_static
or inmedia
...
use IPython’s IFrame instead¶
it works with remote URLs, like we’ne seen about videos
with local URLs though, it’s an issue
here’s an example with an HTML produced with folium, and stored in _static
apparently this won’t work at all in mystmd; it does work in jlab
from IPython.display import IFrame
IFrame("_static/addresses-final.html", "500px", "400px")
Loading...
from IPython.display import IFrame
IFrame("media/addresses-final.html", "500px", "400px")
Loading...
mystmd iframe¶
a local URL in static
: not working ?¶
this is not working as of 2025 march
```{iframe} _static/addresses-final.html
```
a local URL in media
: not working ?¶
this is not working as of 2025 march
```{iframe} media/addresses-final.html
```
height: 300px :align: center
a remote URL¶
using remote URLS is OK - can’t seem to set the heiht though
```{iframe} https://ue12-p25.github.io/intro/
```