Skip to content

Support one bond defining another #38

@fonsp

Description

@fonsp

This currently works in Pluto, but not in PlutoSliderServer:

@bind x Slider(1:10)

@bind y Slider(1:x)

x, y

Why? When moving the y slider in normal Pluto, we just send the y value to the Pluto server, it sets it in the notebook process and runs the dependent cells (just cell 3). In PlutoSliderServer, moving y will send x and y together, this is our stateless idea.

Pluto does not handle this correctly (this is a bug in Pluto, not PSS): it first sets both x and y in the notebook process, and then runs the cells that depend on them: cells 2 and 3. The problem is: running cell 2 will set y to its initial value: 1, and you will always see x, 1 in the third cell.

I already have an example notebook for this: https://github.com/JuliaPluto/PlutoSliderServer.jl/blob/main/test/onedefinesanother.jl

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pluto.jl backendRequires integration with/changes to Pluto's backend (Julia) codebasebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions