Running cells in notebook #268
-
Once I load a notebook, I’m unsure how to run individual sections of code. When clicking “Run Notebook Code,” it executes the entire notebook at once. Is there a way to run code cell by cell instead? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hey! thanks for the question and can be confusing at the beginning. This is a specialty of Pluto.jl: to run those cell's again, that have dependencies on each other. Therefore, a Pluto notebook does not have a "state", like a jupyter notebook, and should (with some limitations), always show the same thing when restarting. In other words: There is no way to execute cell by cell. Hope that helps! Edit: You can use a let
#my code in a cell that will not affect any other cell (but might be affected by other cells if I reuse a variable)
end cell - but it really depends on what you want to do |
Beta Was this translation helpful? Give feedback.
hey! thanks for the question and can be confusing at the beginning.
This is a specialty of Pluto.jl: to run those cell's again, that have dependencies on each other.
Therefore, a Pluto notebook does not have a "state", like a jupyter notebook, and should (with some limitations), always show the same thing when restarting.
In other words: There is no way to execute cell by cell.
Hope that helps!
Edit: You can use a
cell - but it really depends on what you want to do