-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storing several Slider(s) to variables lead to very bad reactiveness #300
Comments
Can you record a video that demonstrates the problem? |
Ah I see, you case is: bond = @bind x Slider(1:10) md"""
Bond: $bond
Value: $x
""" This is not supported. It's not possible to place the bond (the result of This is because moving the slider changes A workaround for displaying a bond and a bound value in the same cell is to use one of Pluto's built-in combined displays. The main system is in |
I posted for comparison a Marimo notebook with exactly same features https://gist.github.com/scls19fr/1486d2732db61d81d4b0021ca5e79481#file-am_modulation-py but that's life ... if I want to use Pluto.jl... I know now that I need to have more cells. |
And like I mentioned, you can use Schermopname.2024-04-24.om.11.49.22.mov# ╔═╡ b4c48706-021f-11ef-1413-059aae52cfc4
using PlutoUI
# ╔═╡ d3d667e4-4e98-44d0-b1f0-cde287afe969
bond = @bind x Slider(1:100);
# ╔═╡ aed4e404-2ca3-4db2-9ac5-d9fd65dbdd98
PlutoUI.ExperimentalLayout.grid([
bond Text("x² = $(x*x)")
x bond
]) |
Hello,
Following issue #299 I changed my Pluto.jl notebook to store sliders into 4 variables.
See https://gist.github.com/scls19fr/1486d2732db61d81d4b0021ca5e79481
v2 is much less reactive and nearly unusable
With v2 you always need to release left button each time you are changing value.
A fix about this will be great because the v2 code writing is much more convenient (less cells)
Kind regards
The text was updated successfully, but these errors were encountered: