Skip to content

Commit

Permalink
use dependency state in export (#731)
Browse files Browse the repository at this point in the history
resolves #726 again

---------

Co-authored-by: knaaptime <[email protected]>
  • Loading branch information
knaaptime and knaaptime authored Jan 16, 2025
1 parent 7c5ec89 commit 6cec0fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lonboard/_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import traitlets
import traitlets as t
from ipywidgets import CallbackDispatcher
from ipywidgets.embed import embed_minimal_html
from ipywidgets.embed import dependency_state, embed_minimal_html

from lonboard._base import BaseAnyWidget
from lonboard._environment import DEFAULT_HEIGHT
Expand Down Expand Up @@ -547,7 +547,7 @@ def inner(fp):
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(),
state=dependency_state((self), drop_defaults=False),
)

if filename is None:
Expand Down

0 comments on commit 6cec0fa

Please sign in to comment.