has2k1 / gnuplot_kernel

A Jupyter/IPython kernel for gnuplot
BSD 3-Clause "New" or "Revised" License
84 stars 25 forks source link

State of the cell is unclear #25

Closed kaihendry closed 4 years ago

kaihendry commented 4 years ago

I noticed when I remove lines and ctrl+enter (iterate), it still appears to have the previous commands in effect.

This is very confusing and results in situations where I've after I've refactored, I don't have a working gnuplot.

https://s.natalian.org/2020-07-10/removing-lines.mp4

Any tips please?

has2k1 commented 4 years ago

See %reset, %%reset (magics) and the reset (gnuplot command) in the example notebook https://github.com/has2k1/gnuplot_kernel/blob/master/examples/gnuplot-kernel.ipynb

In this case just end the cell with the 'reset' command. This is just like using gnuplot on the command line were you either unset specific settings of reset all plot specific settings at once, http://www.bersch.net/gnuplot-doc/reset.html.

On Fri., Jul. 10, 2020, 10:06 a.m. Kai Hendry, notifications@github.com wrote:

I noticed when I remove lines and ctrl+enter (iterate), it still appears to have the previous commands in effect.

This is very confusing and results in situations where I've after I've refactored, I don't have a working gnuplot.

https://s.natalian.org/2020-07-10/removing-lines.mp4

Any tips please?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/has2k1/gnuplot_kernel/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF6QNNGTIBECBXGPMQHIM3R224XTANCNFSM4OWJZEKA .

kaihendry commented 4 years ago

Thank you https://s.natalian.org/2020-07-11/concern.mp4

Still find it a little confusing, but I think this is just the way Jupyter Notebook works

kaihendry commented 4 years ago

I'm still very confused by the https://s.natalian.org/2020-07-11/reset.mp4 logic...

has2k1 commented 4 years ago

Forget about %reset and %%reset.

Use 'reset' (no percent signs), the gnuplot command.

On Sat., Jul. 11, 2020, 6:39 a.m. Kai Hendry, notifications@github.com wrote:

Reopened #25 https://github.com/has2k1/gnuplot_kernel/issues/25.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/has2k1/gnuplot_kernel/issues/25#event-3535938596, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF6QNNUJU3XFSXRYEN47B3R27NHJANCNFSM4OWJZEKA .

kaihendry commented 4 years ago

Ok, that appears to work. Though darn, quite easy to get into a bad state.

kaihendry commented 4 years ago

Found it doesn't work for set colors..

https://s.natalian.org/2020-07-11/reset-color.mp4