Skip to content

Commit

Permalink
Pass state in to_html (#726)
Browse files Browse the repository at this point in the history
## Available PR templates

<!--
Github doesn't allow PR template selection the same way that it is
possible with issues.
  Preview this and select the appropriate template
-->

- [Default](?expand=1&template=default.md)
- [Version Release](?expand=1&template=version_release.md)
- _Alternatively delete and start empty_
  • Loading branch information
kylebarron authored Jan 7, 2025
1 parent 3ff75dc commit 7c5ec89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lonboard/_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ def inner(fp):
title=title or "Lonboard export",
template=_HTML_TEMPLATE,
drop_defaults=False,
# Necessary to pass the state of _this_ specific map. Otherwise, the
# state of all known widgets will be included, ballooning the file size.
state=self.get_state(),
)

if filename is None:
Expand Down

0 comments on commit 7c5ec89

Please sign in to comment.