Skip to content

Commit

Permalink
Ensure Panes with multiple items get saved correctly (holoviz#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jan 22, 2020
1 parent 33ae2e5 commit 82f5514
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions panel/io/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ def save(panel, filename, title=None, resources=None, template=None,
load_path: str (default=None)
The path or URL the json files will be loaded from.
"""
from ..pane import PaneBase

if isinstance(panel, PaneBase):
if len(panel.layout) >= 1:
panel = panel.layout

doc = Document()
comm = Comm()
with config.set(embed=embed):
Expand Down

0 comments on commit 82f5514

Please sign in to comment.