microsoft/vscode-jupyter-keymap

Juypter Notebook and ipywidgets

Closed this issue · 5 comments

Issue Type: Bug

Randomly occurs.

while typing into a textbox or within a textarea, the output looses focus and gets focus of the cell where the code was generated from, and keys are being executed against the code cell (not within it), and in this case when I'm hitting the delete key, it's removing the code cell.

`
import ipywidgets as widgets
from ipywidgets import Layout
from IPython.display import display

output = widgets.Output()

txtProcess = widgets.Text(
value='',
placeholder='Short Description of Process',
description='Process Name:',
disabled=False,
layout=textboxLayout
)

txtPKColumns = widgets.Textarea(
value='',
placeholder='Primary Key Columns, semicolon seperated list',
description='PK Columns:',
disabled=False,
layout=textareaLayout
)

display(txtProcess, txtPKColumns, output)

`

VS Code version: Code 1.62.3 (ccbaa2d27e38e5afa3e5c21c1c7bef4657064247, 2021-11-17T08:11:14.551Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

Extensions (54)
Extension Author (truncated) Version
vscode-sqlite ale 0.14.0
al-code-outline and 3.0.23
vscode-browser-preview auc 0.7.2
armview ben 0.4.5
unique-lines bib 1.0.0
markdown-preview-github-styles bie 0.2.0
vs-code-bpmn-io bpm 0.12.0
excel-to-markdown-table csh 1.3.0
vscode-markdownlint Dav 0.45.0
vscode-guid hea 1.4.20
al-object-designer mar 0.2.4
rainbow-csv mec 1.10.1
markdown-formatter mer 0.9.6
dotenv mik 1.0.1
azure-pipelines ms- 1.195.0
vscode-azureappservice ms- 0.23.0
vscode-azurefunctions ms- 1.6.0
vscode-azureresourcegroups ms- 0.4.0
vscode-azurestorage ms- 0.12.1
vscode-azurevirtualmachines ms- 0.4.1
vscode-bicep ms- 0.4.1008
vscode-cosmosdb ms- 0.18.1
vscode-docker ms- 1.18.0
csharp ms- 1.23.16
dotnet-interactive-vscode ms- 1.0.2559020
vscode-dotnet-runtime ms- 1.5.0
al ms- 8.2.545335
gather ms- 2021.9.1
python ms- 2021.11.1422169775
vscode-pylance ms- 2021.11.2
jupyter ms- 2021.10.1101450599
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.3
remote-containers ms- 0.205.2
remote-ssh ms- 0.66.1
remote-ssh-edit ms- 0.66.1
remote-wsl ms- 0.58.5
vscode-remote-extensionpack ms- 0.21.0
azure-account ms- 0.9.11
azurecli ms- 0.5.0
powershell ms- 2021.10.2
vscode-node-azure-pack ms- 0.2.1
vsliveshare ms- 1.0.5090
vsliveshare-audio ms- 0.1.91
vsliveshare-pack ms- 0.4.0
azurerm-vscode-tools msa 0.15.5
vs-sequential-number nep 1.1.0
prettyxml Pra 1.2.0
vscode-thunder-client ran 1.9.1
vscode-qt-for-python sea 1.1.4
allint Ste 0.2.4
gistfs vsl 0.3.0
crs-al-language-extension wal 1.4.11
markdown-all-in-one yzh 3.4.0

@rebornix, do you know if this issue has been addressed? Don thought it might be.

Hello, Has this been solved?
I am experiencing similar issues with ipywidget.
some widget do not work whilethey work in regular browsers.
Also, (might open another issue for this) but is there a way to have the ipywidget follow system mode?
Thanks for the help

Enregistrement.d.ecran.le.2022-07-01.a.22.11.50.mov
  • VS Code Version: 1.68.1
  • OS Version: MacOs 12.3.1

I am also experiencing this issue.
Has anyone figured out a solution or workaround?

Can be solved by adding !notebookOutputFocused to the keybindings when clauses and we will update the keymap to fix it.