Open creative-resort opened 2 months ago
Could it be due to a recent JupyterLab release?
It might be intercepted by lab commands. Should widgets.Textarea
have data-lm-suppress-shortcuts="true"
as per https://jupyterlab.readthedocs.io/en/latest/extension/notebook.html#keyboard-interaction-model ?
Looks like duplicate of https://github.com/jupyter-widgets/ipywidgets/issues/3926 btw
@krassowski might be related, but in contrast to the other issue – which also is for Notebook, not Lab – I am perfectly able to type just any text into the Textarea, including the character "a", just that it's all in one single line.
The Enter key is also not triggering any Jupyter actions, unless it's SHIFT-ENTER
, of course. There is literally no reaction to pressing the ENTER key, at all.
Same here. With the newest Updates of Jupyterlab 4.2.5, i can't press enter. In Jupyter Notebook 7.2.2, all is fine. With Anaconda & Win11
Did it work in JupyterLab 4.2.4?
I think that in either case the solution is adding data-lm-suppress-shortcuts
.
@krassowski can you navigate me to where in the source I would add this option?
I would defer to @martinRenou as to what the best place to add it would be.
For the record: I am having the same problem here. I made a quick dissection, and the problem appeared during the following upgrade:
mamba install -C "jupyterlab==4.2"
...
- jupyterlab 4.1.8 pyhd8ed1ab_0 conda-forge Cached
+ jupyterlab 4.2.0 pyhd8ed1ab_1 conda-forge 8MB
- notebook 7.1.3 pyhd8ed1ab_0 conda-forge Cached
+ notebook 7.2.2 pyhd8ed1ab_0 conda-forge Cached
Is there any workaround to fix this ? I had to downgrade to JupyterLab 4.1.8 to make it work. I can confirm that this issue occurs on JupyterLab 4.2.0, 4.2.4, 4.2.5
Looks like the fix suggested above should help:
I think that in either case the solution is adding
data-lm-suppress-shortcuts
.
Description
Reproduce
Enter
was never pressed. Copy-Pasting multiline text with line breaks, will work, however.Expected behavior
A new line should be created within the widget text area.
Context
Troubleshoot Output
Command Line Output
Browser Output
If using JupyterLab
Installed Labextensions