Skip to content

Exported layouts do not contain pluginDataMap #1861

@mofojed

Description

@mofojed

Description

If you open some deephaven.ui widgets and export the layout, then try and import the layout, the deephaven.ui widgets will not load.

Steps to reproduce

  1. Open a deephaven.ui widget
from deephaven import ui

@ui.component
def counter():
    count, set_count = ui.use_state(0)
    return ui.action_button(
        f"You pressed me {count} times", on_press=lambda _: set_count(count + 1)
    )


result = counter()
  1. From the Panels menu, select Export Layout
  2. From the Panels menu, select Reset Layout
  3. From the Panels menu, import the layout you exported in 2

Expected results
4. Same layout should open up

Actual results

  1. deephaven.ui widgets do not hydrate. Inspecting the layout.json shows the pluginDataMap is not saved. See attached.

Additional details and attachments
deephaven-app-layout-2024-03-09-082717.json

Versions

Engine Version: 0.34.0-SNAPSHOT
Web UI Version: 0.68.0
Java Version: 21.0.2
Barrage Version: 0.6.0
Browser Name: Chrome 122
OS Name: macOS 10.15.7

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions