New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double output on Ctrl-enter-enter #4223
Comments
This is not unique to Control-Enter. It works with Shift-Enter and the various "Run" options from the cell menu as well. You don't even have to use the same means of execution twice, for example Control-Enter followed by "Run all" will produce doubled output. Finally, you don't need a spinning delay (like a long computation) to produce this effect. Making a delay with time.sleep() works just as well.
|
This is a bit more general than an order of operations bug. This should be a summary of the relevant bits:
I think we can get away with fixing this by simply clearing the callbacks for the last execution when we submit a new one. |
avoids mixed up display of multiple executions in one output area when a cell is resubmitted. closes ipython#4223
should be fixed by #4224. |
avoids mixed up display of multiple executions in one output area when a cell is resubmitted. closes ipython#4223
(Reported by Fujun Du on the mailing list)
When I run a cell in place with "Control-Enter" to make a plot, and if I press the key combination very quickly twice (namely, press "Control-Enter-Enter"), I will have two copies of the same plot shown below the cell.
This is nothing important but just for you to know the issue. To reproduce the behavior, I guess the computation in the cell must take quite some time to finish (to be slower than the key press). For example, put the following code into a new cell and press "Control-Enter-Enter" quickly you will get two output "xxx". In case your computer is very fast, add one or a few more zeros to the xrange:
The text was updated successfully, but these errors were encountered: