Skip to content
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

Weird cell topology behavior #84

Open
ghaetinger opened this issue Aug 23, 2022 · 1 comment
Open

Weird cell topology behavior #84

ghaetinger opened this issue Aug 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ghaetinger
Copy link

This notebook produces a weird cell topology and results on unintended behavior:

# ╔═╡ eab54436-2314-11ed-372a-536153d0ba0e
using PlutoUI

# ╔═╡ db24a888-617d-4123-84e6-cb57aacd68e7
@bind a Slider(1:10; show_value=true)

# ╔═╡ 2515ccde-fafd-42db-b75c-110817f9074d
begin
	a
	@bind b Slider(1:10; show_value=true)
end

# ╔═╡ 5a37bce9-d9e4-456f-9b9d-7d8755b1e0db
begin
	a
	rand()
end

Bond topology generated:

┌ Info: Bond connections
│   s.path = "test-pss-deps.jl"
│   showall(collect(bond_connections)) =
│    :a => [:a, :b]
└    :b => [:a, :b]

Shouldn't the topology be :a => [:a], :b => [:a, :b]?

Also, this notebook's behavior makes it so everytime you change b, you generate a different rand number. This might be because rand relies on the current overall state of the notebook, but still shouldn't happen. Also, the slider for b seems stuck, as it doesn't slide but directly moves to where the cursor is. The slider value displaying also doesn't change and isn't going back to 0 when we change a. Here is a quick video:

PSSerror

@Pangoraw
Copy link
Member

Related: fonsp/Pluto.jl#2014

@fonsp fonsp added the bug Something isn't working label Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants