ipython notebook #find and replace只替换“all”选项

如何有选择地替换单个单元格中的某些单词,例如有7个变量名为’foo’,并用’moo’代替其中的3个.

i
python笔记本只提供全部替换选项. 最佳答案 看起来好像今天不可能.

以下是其中一位贡献者对此主题的评价:

I am opposed to trying implement that in our current UI – it doesn’t
have the needed abstractions to do that well. In the new
JupyterLab/Workbench it will be quite easy to build a find/replace UI
in a separate panel that allows us to toggle the individual
replacements while still showing the notebook (in a non-model way).

https://github.com/jupyter/notebook/issues/558#issuecomment-164180866

点赞