hispecdrp.utils.notebook_display
Helpers for displaying large local HTML products inside Jupyter / VS Code notebooks.
Functions
|
Start (or reuse) a localhost static file server rooted at |
|
|
|
Embed a local HTML file in a notebook output cell via a localhost iframe. |
- display_html_file(path, *, height=900, width='100%')[source]
Embed a local HTML file in a notebook output cell via a localhost iframe.
IPython.display.HTML(open(path).read())does not work well for HISPEC stellar-RV previews: they are full HTML documents (often hundreds of MB with Plotly), and notebook frontends sanitize / drop nested<html>/<script>content. Serving the file overhttp://127.0.0.1and embedding an iframe keeps scripts executable without stuffing the file into the notebook JSON.- Parameters:
- Returns:
IPython.display.IFrame – The display object (also sent to the notebook frontend via
display).