notebook breaks in Pluto 0.18.0 while works in 0.17.3 #1910
-
Packages install using PlutoPkg are not found Video on notebook working in Pluto 0.17.3 (works) p1@0.17.3.mp4Video on notebook breaking in Pluto 0.18.0 (breaks) p1@0.18.0.mp4📝 Pluto notebook file: https://gist.github.com/AbhimanyuAryan/cb603f44c4186eeb5bf310204a81a496 (it is little long that was best I could do to strip it down. All components are dependent on each other) Start breaking near this line where |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
What does this mean? Thanks for providing the video and the notebook file, but what is the problem exactly?
|
Beta Was this translation helpful? Give feedback.
-
It looks like the notebook is relying on the order of side effects. For example, these three cells: filename = "hello" write(filename, "world!") read(filename, String) == "world!" are not guaranteed to run top to bottom, because we run cells in "topological order" instead. Pluto might run this notebook in the order 1, 3, 2, because this respects all variable links. You can fix this by creating dummy variables, like you are already doing in some places: filename = "hello" written = write(filename, "world!") written; read(filename, String) == "world!" Note that now there is an explicit link An example in your notebook: Because of side effects (writing to the There are some more hidden dependencies between cells in the notebook, like these four cells: https://gist.github.com/AbhimanyuAryan/cb603f44c4186eeb5bf310204a81a496#file-pluto_bug-jl-L608-L640 I recommend putting these into a single cell. |
Beta Was this translation helpful? Give feedback.
What does this mean?
Thanks for providing the video and the notebook file, but what is the problem exactly?