如何查找和查找在Jupyter Lab中替换 [英] How to Find & Replace in Jupyter Lab
问题描述
Jupyter Notebooks中有一个选项,您可以选择一些单元格,然后按F键,这将打开查找和查找"功能.替换功能.
There's an option in Jupyter Notebooks where you can select some cells, and then hit F, which opens up a Find & Replace feature.
此快捷方式在Jupyter Lab中不起作用.它不在命令"列表中,也不在编辑"菜单中(只有查找-"以及查找下一个"和查找上一个").我也找不到全局(并非特定于单元格选择)查找并添加";替换功能.
This shortcut doesn't work in Jupyter Lab. It's not in the Commands list and it's not in the Edit Menu (there is only Find -- and Find Next and Find Previous). Nor can I find a global (not specific to a cell selection) Find & Replace feature.
此功能是否存在?我在互联网上发现了很多有关它的内容-是否已将其删除?我正在使用Jupyter Lab 1.2.3版.
Does this feature exist? I've found old mentions of it on the internet -- has it been removed? I'm using Jupyter Lab version 1.2.3.
推荐答案
查找与查找;替换功能未未删除,但是在菜单中的命名方式(简称为Find...
)和要求用户单击小箭头才能访问它的UI可能会造成混淆.请参阅下面的GIF,该GIF演示了如何使用搜索和搜索功能.替换功能:
The Find & Replace feature was not removed, but the way it is named in the menu (simply Find...
) and the UI which requires the user to click on a small arrow to access it may be confusing. Please see the GIF below which demonstrates how to use the search & replace feature:
如果您需要功能更强大的重构工具(例如,区分变量范围),则可能需要查看我的 jupyterlab-lsp
项目,该项目现在包括对重命名操作的支持(请参见
If you need a slightly more powerful refactoring tool (i.e. distinguishing the variable scopes) you may want to check out my jupyterlab-lsp
project which now includes support for the rename action (see here for a demonstration GIF).
这篇关于如何查找和查找在Jupyter Lab中替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!