You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ╔═╡ cc0c1db0-f4dc-11ea-2f85-dd812a3de9b1
v = [123]
# ╔═╡ d2905c00-f4dc-11ea-367a-a5073a34c7dbbegin
w = v
w[1] =5
v
end
But if now we change the second cell above, to make a copy of v:
# ╔═╡ d2905c00-f4dc-11ea-367a-a5073a34c7dbbegin
w =copy(v)
w[2] =5
v
end
Then my expectation is that when I run the updated second cell, the first cell should automatically be rerun so that the output of the second cell reflects what it would be if the whole notebook was run from scratch. Instead, after updating and running the second cell, I get
1×3 Array{Int64,2}:553
The text was updated successfully, but these errors were encountered:
As expected, the below assigns
5
tov[1]
.But if now we change the second cell above, to make a copy of
v
:Then my expectation is that when I run the updated second cell, the first cell should automatically be rerun so that the output of the second cell reflects what it would be if the whole notebook was run from scratch. Instead, after updating and running the second cell, I get
The text was updated successfully, but these errors were encountered: