Skip to content

anywidget model.get() returns default value in render() on browser refresh #9420

Description

@manzt

Describe the bug

Moving over from manzt/anywidget#985, since I believe this is related to the AFM support in marimo.

When refreshing the browser (kernel stays alive, only the frontend reconnects), model.get() inside render() returns the Python-side default value rather than the current kernel state.

Image

Reproduction

https://molab.marimo.io/notebooks/nb_GPq5oLnwfQDYFyrZmraYrU

Will you submit a PR?

  • Yes

Environment

molab

Code to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions