vscode icon indicating copy to clipboard operation
vscode copied to clipboard

F3 shortcut for search and replace within a Jupyter Notebook cell does not work anymore

Open lgonzalezsa opened this issue 2 years ago • 23 comments

Applies To

  • [X] Notebooks (.ipynb files)
  • [ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Before 1.75 vscode or jupyter extension v2023.2.1000411022 I was able to press F3 to find and replace within a cell. Now F3 does nothing in the notebook. I am on Linux OS.

VS Code Version

1.75.0

Jupyter Extension Version

v2023.2.1000411022

Jupyter logs

Visual Studio Code (1.75.0, undefined, desktop)
Jupyter Extension Version: 2023.2.1000411022.
Python Extension Version: 2023.2.0.
Workspace folder /home/gonluisr/PATH
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
info 19:42:35.930: LSP Notebooks experiment is enabled
error 19:42:36.246: No remote controllers
error 19:42:36.665: No remote controllers
error 19:42:36.666: No remote controllers
error 19:42:37.155: No remote controllers
error 19:42:37.158: No remote controllers
error 19:42:37.490: No remote controllers
info 19:42:38.757: Checking for server existence.
info 19:42:38.758: Connecting to server
info 19:42:38.758: Connecting server kernel https://server/user/gonluisr/
Connecting to Jupyter server at https://server/user/gonluisr/
info 19:42:38.759: Creating server with url : https://server/user/gonluisr/
info 19:42:38.770: Server started.
info 19:42:38.770: Creating server with url : https://server/user/gonluisr/
info 19:42:38.771: Creating server with url : https://server/user/gonluisr/
info 19:42:39.377: Results of switching remote kernel: true
info 19:42:41.129: Results of switching remote kernel: false
info 19:42:41.129: Results of switching remote kernel: false
info 19:42:41.129: Results of switching remote kernel: false
info 19:42:45.999: Process Execution: > ~/miniconda3/envs/dev_env/bin/python -m pip list
> ~/miniconda3/envs/dev_env/bin/python -m pip list

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

Python extension v2023.2.0

Anaconda Version (if applicable)

conda 22.9.0

Running Jupyter locally or remotely?

Remote

lgonzalezsa avatar Feb 10 '23 01:02 lgonzalezsa

The enter key has some strange behavior as well when within the find widget. Doesn't go to the next selection, doesn't trigger a replace.

amunger avatar Feb 10 '23 19:02 amunger

@rebornix The find widget for a single cell is not working anymore, nothing happens after pressing the shortcut key, hope it can be resolved soon! This is the normal effect. find

grantsimongrant avatar Feb 23 '23 13:02 grantsimongrant

Agree ! I miss the super useful feature :(

Thanks

ihgumilar avatar May 21 '23 10:05 ihgumilar

Так почему мы медлим?

Отправлено из Mail.ru для Android воскресенье, 21 мая 2023г., 13:18 +03:00 от Ihshan Gumilar @.*** :

Agree ! I miss the super useful feature :( Thanks — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread. Message ID: @ github . com>

FRIMENGORDON avatar May 21 '23 10:05 FRIMENGORDON

How to rename a symbol in a single cell of a jupyter notebook, without affecting the other cells ? Would be super usefull.

Freymat avatar Aug 29 '23 08:08 Freymat

Hi, any update?

khlari avatar Sep 13 '23 17:09 khlari

Hi, any updates on this issue? Hoping it can be fixed soon

isaacsarver avatar Oct 18 '23 19:10 isaacsarver

Please fix this!

KangByungwoo avatar Jan 12 '24 23:01 KangByungwoo

Definitely I am missing this capability

lgonzalezsa avatar Jan 12 '24 23:01 lgonzalezsa

missing

allabur avatar Feb 14 '24 09:02 allabur

someone please look into this

syedjafri3 avatar Mar 25 '24 15:03 syedjafri3

+1

josephko91 avatar Apr 30 '24 18:04 josephko91

+1

Le mar. 30 avr. 2024 à 20:13, Joseph Ko @.***> a écrit :

+1

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/174087#issuecomment-2086372720, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSGDN2K42UGZ74PR72DD4DY77NONAVCNFSM6AAAAAAUYD7I4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBWGM3TENZSGA . You are receiving this because you commented.Message ID: @.***>

Freymat avatar May 02 '24 07:05 Freymat

+1

milanaveed avatar May 21 '24 16:05 milanaveed

Definitely an important feature! Please give some updates.

FraNob avatar May 22 '24 16:05 FraNob

+1

godji83 avatar Jun 03 '24 12:06 godji83

This makes using notebooks extremely frustrating.. is there a work around at least?

collinmccarthy avatar Jun 26 '24 20:06 collinmccarthy

My work around is to open the .ipynb file as a text file (see https://stackoverflow.com/a/65566417/12422298) then do my standard search-replace, then save and re-open the file as a notebook and continue working. Much faster than dealing with the UI in its current state.

collinmccarthy avatar Jun 26 '24 23:06 collinmccarthy

It seems that this feature got reintroduced 😄

FraNob avatar Oct 14 '24 10:10 FraNob

Using shortcut CTRL + F2 (Change all occurrences) replace, does not replace but positions the cursor at the end of the selected text, within a Jupyter Notebook cell the text you have selected previously.

allabur avatar Oct 21 '24 13:10 allabur

Version: 1.96.4 (user setup) Commit: cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba Date: 2025-01-16T00:16:19.038Z Electron: 32.2.6 ElectronBuildId: 10629634 Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Windows_NT x64 10.0.22631

Still not work

samuelyhsu avatar Jan 17 '25 15:01 samuelyhsu

Can confirm, pressing f3 does nothing in Jupyter notebooks. Also, when using regular search and then editing some lines with find-matches in it, the search counter randomly jumps back. E.g. I search for something, find 40 matches, I go to match #30, then edit that line, the match counter goes back to 5, so I press "find next" and it pushes me back to match #6, not match #31. Both is so frustrating that I am using other IDEs for Jupyter notebooks.

Version: 1.98.1 (user setup)
Commit: 2fc07b811f760549dab9be9d2bedd06c51dfcb9a
Date: 2025-03-10T15:38:08.854Z
Electron: 34.2.0
ElectronBuildId: 11160463
Chromium: 132.0.6834.196
Node.js: 20.18.2
V8: 13.2.152.36-electron.0
OS: Windows_NT x64 10.0.19045

nicouh avatar Mar 11 '25 09:03 nicouh

F3 does not work, only arrow key buttons work

rsxdalv avatar May 23 '25 12:05 rsxdalv

Fix via https://github.com/microsoft/vscode/pull/270303

rebornix avatar Oct 11 '25 00:10 rebornix

Is it going to be released?

Tested on:

Version: 1.105.1 (user setup) Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084 Date: 2025-10-14T22:33:36.618Z Electron: 37.6.0 ElectronBuildId: 12502201 Chromium: 138.0.7204.251 Node.js: 22.19.0 V8: 13.8.258.32-electron.0 OS: Windows_NT x64 10.0.26100

and it does not work yet. I understand the binary open/closed mechanic of issues but I'd say that until it's reasonably un-seen by users is when it's closed

rsxdalv avatar Nov 10 '25 13:11 rsxdalv