Detect when in console mode #5
Labels
console
Related to jupyter console mode
what/toolkit/notebook
Related to the native graphics toolkits
what/toolkit/plotly
Related to the plotly graphics toolkit
Issue:
Notebooks are organised in cells which have their own output that usually depends only on the code contained in the cell itself.
On the other hand, the console is more interactive and sequential.
In octave the main thing that is affected by this behavior are figures (e.g. plots). When a figure is created Octave sets it as the active one and keeps track of it, applying any new command to it.
So in order to avoid having commands in subsequent cells act on a plot displayed on a previous cell the active figure is cleared so that a new one is created (if necessary) on every execution cell.
This does not apply as well on the console, as someone could create a plot in one execution and then in another execution for example add a new trace on it. This does not work as the second execution creates a new empty figure, before adding the trace to it.
Possible solution:
We should try to detect if we are in console mode.
If so, we should not clear the figure on every cell execution, because this does not work well with the concept of console.
Not sure this is actuable
The text was updated successfully, but these errors were encountered: