Skip to content

ipywidgets display, but don't trigger re-execution on change #106

@joseph-long

Description

@joseph-long

I tried a basic widget example in a .qmd file:

from ipywidgets import interact
import numpy as np

@interact(alpha=(-5, 5, 0.1))
def f(alpha):
    return print(np.linspace(-10, 10) ** alpha)

The slider and the output appear, but the output does not update when the slider does:

Image

Happy to dig into this more if someone can suggest a place to look. I'd love to be able to go directly from Jupyter notebooks to interactive documents on a website.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions