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
Can not insert line breaks in a specific notebook cell #4165
Comments
This happens to me as well, although I haven't been moving notebooks to different folders. I notice it sometimes when I "Restart Kernel and Clear Outputs...". |
I am still not able to reproduce this consistently but just had it happen again. Hopefully this isn't a red herring, but this time it occurred after clicking shift+tab to produce a tool-tip for a function, and clicking away from the active cell to some other cell. |
@fuglede - are you on current jupyterlab now? 0.34.12? |
@jasongrout I believe this was in 0.34.1; are there any changes in the most recent versions that could affect this? In any case, I've now made sure to update to 0.34.9 (which seems to be the most recent one available through conda) and will continue to have an eye on it. Edit: Just noticed that 0.34.12 is in conda-forge, so let me go with that one instead. |
I experience this bug, too, but I cannot reproduce it consistently. Some cell stops accepting newline characters (although they can be introduced by copy pasting). Copying the content of the cell into a new cell (or even copying the whole cell with I'm using Jupyter 4.4.0 with jupyter lab 0.35.4, installed with conda 4.5.11. Does anyone have any idea of some more information that could be useful? |
Do you have any custom keyboard shortcuts? |
A few in Windows but not in Firefox/Jupyter. |
Are there any javascript console errors when you notice the misbehavior? Can you reproduce it when running in incognito mode with no browser extensions? Sometimes a browser extension will interact in weird ways with content on the page. |
No custom keyboard shortcuts in my case.
I'll check it next time I experience the cell misbehavior.
The problem occurs from time to time and I wasn't able to reproduce it in a controlled manner. Thus, I haven't managed to test it in a controlled environment. I also have a few jupyterlab extensions installed. I have already disabled them, I guess I don't need to uninstall them, right? |
Disabling the extensions should be enough. |
No JupyterLab extensions here. |
I have jupyterlab==0.35.4 with no extensions installed. Return/Enter will stop working in random cells. Restarting kernels does not fix the issue. Moving the notebook, however, does. I don't get this issue with Jupyter Notebooks (i.e. w/o Lab). jupyter==1.0.0 |
I can consistently reproduce this behavior, by starting a string with autocompletion (fx a directory path), and while the suggestions are still open, pressing Shift+Enter. I am on a Mac. MWE description: Now the cell does not insert line breaks when pressing ENTER. |
Yep, I can verify that this also produces the issue consistently here. Brilliant! |
Unfortunately, I am unable to reproduce this issue, so debugging this seems tricky, but the issue seems major so let me at least try to spell out what I was doing in case that makes it obvious to contributors what could be happening. When I
altair
snippet below into a cell and executed it,then I was no longer able to insert line breaks into that cell by pressing return. All other characters could be entered just fine, but adding line breaks was impossible. It is possible, however, to add a line break by copying and pasting one from another cell.
If I copy the contents of the cell to another cell, then that cell works fine, even if I execute the contents. Similarly, if I copy the cell itself (through command mode+C+V), then the newly created cell also works as expected. Likewise, if I add cells above or below the problematic cell, then those also work as expected. Only the initially created cell causes issues.
The code in the problematic cell:
Some version numbers:
The text was updated successfully, but these errors were encountered: