Closed rlisahuang closed 1 year ago
Implemented a first pass of this in 02d8bf8. We need to decide if we want to emulate the REPL or single-file run behavior before closing this issue though.
@rlisahuang @slerner Thoughts?
I see that the design now is for the output to emulate the REPL.
In my opinion, I would expect a single-file run behavior when editing such code in an editor, so in other words I would like to see one final plot at the end. If I want to see intermediate plots, I probably would comment out the code afterwards.
If I put the code in a Jupyter Notebook, then I would expect REPL-like behavior based on the cells (so maybe I would put one plt.*
call in each cell to see the intermediate plots.
Others might disagree. So let's keep the conversation going.
Also found a bug as I was trying out this feature. See #45.
Agreed upon emulating the single-file run behavior (which is what it currently is).
Example:
The plot should show up in the Output panel when Run is pressed. Right now, nothing is presented in the output panel.