How to "find and replace" text?

Vincenzo Lavorini picture Vincenzo Lavorini · Jul 23, 2018 · Viewed 14.8k times · Source

I see there is such command in the Edit menu tab, but is dim grey, both if I am inside a code tab and if I am outside it, as you can see in the attached screenshot. How can I perform such operation? Screenshot of the issue

Answer

Vincenzo Lavorini picture Vincenzo Lavorini · Oct 2, 2018

UPDATE:

with the latest version of Jupyter lab (>1.1.4) this function is added!

Just click "Find", below the "Edit" menu: a contextual window will appear at the top right of the notebook.

There you click on the small arrow at the left side of the text field, and the "replace" function appear.

OLD ANSWER (still good anyway):

At the end, I found this solution, but it's only for those who know how to use VIM, the text editor.

I installed an extension, jupyterlab-vim, and so I can use VIM commands for search and replace text.

This appears to be an overkill as solution, but for VIM lovers (like me) using many VIM commands in Jupyter Lab is just fabulous.