-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Bug: replacing cell contents after executing #7875
Comments
Thanks for reporting this. That is very weird, and I don't remember ever hearing of something like this happening. The first thing I think of is that perhaps a browser extension or a jupyterlab extension is messing something up. I realize since you can't reproduce it reliably, it's hard to try to narrow things down by going through the diagnosis guidelines at https://jupyterlab.readthedocs.io/en/stable/getting_started/issue.html. But at a very minimum, next time you see this, can you try disabling any browser extensions and jupyterlab extensions you may have installed? |
Setting as "needs info" for a better way to reproduce this, and pending reproduction with no browser and jlab extensions installed. Also, were there any js console errors? |
Hi Jason, if this happens again, I will comment here with more information. I don't have many Chrome extensions installed, but I have quite a few Jupyter extensions, so I will try disabling. No js console errors. |
Note that you can start JupyterLab with only the stock builtin plugins (i.e., no custom plugins you've installed) with |
The same is happening to me. |
Can you go through the diagnosis guides linked above to try to narrow down what might be causing the issue, or to come up with instructions to reproduce this? |
Closing as inactive. Please comment to continue the discussion. |
Description
When I execute a cell by hitting "shift enter", the cell executes, but the cell contents is replaced with the previous cell that I ran.
Example:
In: print("hi")
Out: hi
In: 2+2
Out: 4
Upon executing, the "2+2" in my cell is replaced with "print("hi")". I took a few videos illustrating this with my actual code: https://imgur.com/a/TzifF5k
It always replaces the cell input with the last cell that was executed. If I were to run an additional cell:
In: print("Hello")
Out: Hello
It would print Hello, but also replace the cell input with "2+2".
Reproduce
This has happened to me at random. It happened about a month ago and I fixed it by rebooting my machine. Today it happened again and I fixed it by restarting the kernel and clearing all outputs (rebooting did NOT fix it). I have searched online to see if this happened to anyone else, but didn't find anything, so I wanted to report it here.
Expected behavior
I expect the cell to be executed, and the code that I typed in to not change.
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: