Lifemap.save
Lifemap.save(path, title='Lifemap')Save the Jupyter widget for this instance to an HTML file.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| path | str | Path | Path to the HTML file to save the widget. | required |
| title | str | Optional HTML page title, by default “Lifemap” | 'Lifemap' |
Examples
>>> import polars as pl
>>> from pylifemap import Lifemap
>>> d = pl.DataFrame({"taxid": [9685, 9615, 9994]})
>>> (
... Lifemap(d, width="100%", height="100vh")
... .layer_points()
... .save("lifemap.html", title="Example lifemap")
... )