IPython Notebook keyboard shortcut search for text

2019-02-21 18:20发布

问题:

Is there a keyboard shortcut to search for text in an IPython Notebook?

I looked under Help | Keyboard shortcuts and there are lots of cool shortcuts but none for searching for text?


The notebook is running in FireFox on Ubuntu.

回答1:

There is a find-and-replace command in Jupyter. It's key binding is F (command mode):

Of course you can find text with the browser's functionality, (I find it sometimes better), but the command in Jupyter is also very useful. I use a lot that function Replace in selected cells when I copy-paste a bunch of code and then change variables or something like that:


(Note: You can launch the Command Palette with shift+ctrl+P, and browse or run other commands)




回答2:

:Embarassed: "Running in" means use the browser "find text on this page" shortcut. Firefox shortcut for this is ctrl - F.