I know that ctrl
+ F
will find the texts that I want, and I can change variable names accordingly.
However, is there any function or buttons that supports changing all the variable name all at once, as we do in other non-browser based IDEs?
I know that ctrl
+ F
will find the texts that I want, and I can change variable names accordingly.
However, is there any function or buttons that supports changing all the variable name all at once, as we do in other non-browser based IDEs?
Yes, both the text editor and the notebook viewer in JupyterLab have Find-and-Replace all as an option.
You need to toggle the little drop-down indicator that is to the left of where you enter the search text in order to bring up the âReplaceâ options.
Here is the text editor in action:
Here is the notebook viewer as you edit cells in action:
If youâd to see what you should be seeing, go here and select âTry JupyterLabâ.
These examples came from there just now. It is running JupyterLab 3.2.0. If you have a JupyterLab version that is 3 or above, then it is really worth updating.
jupyterlab-lsp has the rename feature too, which will only replace code occurrences*:
*the behaviour will vary depending on the language server you choose.
Thank you for your suggestion. âjupyterlab-lspâ, is it a jupyterlab extension? I have visited the github repo page of it, but cannot really figure it out.
Yes, it is a JupyterLab extension.
It was you, krassowski, who made the extension! It is an amazing extension and I love it. Thank you for making such a great extension and make it free to use