Skip to content

Commit

Permalink
Skip jslinked widgets in embed (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Apr 11, 2019
1 parent 9981904 commit 002dd94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panel/io/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,16 @@ def embed_state(panel, model, doc, max_states=1000, max_opts=3,
load_path: str (default=None)
The path or URL the json files will be loaded from.
"""
from ..links import Link
from ..models.state import State
from ..widgets import Widget, DiscreteSlider

target = model.ref['id']
_, _, _, comm = state._views[target]

model.tags.append('embedded')
widgets = [w for w in panel.select(Widget) if w._supports_embed]
widgets = [w for w in panel.select(Widget) if w._supports_embed
and w not in Link.registry]
state_model = State()

values = []
Expand Down

0 comments on commit 002dd94

Please sign in to comment.