Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why no find and replace in python notebooks? #263

Closed
abrahamneben opened this issue Aug 6, 2015 · 11 comments
Closed

Why no find and replace in python notebooks? #263

abrahamneben opened this issue Aug 6, 2015 · 11 comments

Comments

@abrahamneben
Copy link

Why does the jupyter text editor have find and replace, but the python notebook does not? This is a needed feature!

@Carreau
Copy link
Member

Carreau commented Aug 6, 2015

Please see other related issues, like #261 posted 14 h ago, which is on the top of the list.

Search and replace on many cells at once is a little bit trickier than in only one. And as in any open source project someone have to do the work.

If you want to try to tackle it, we can give you pointer.

(please continue comment on other issues not to keep thing spreaded),

Thanks !

@Carreau Carreau closed this as completed Aug 6, 2015
@minrk minrk added this to the no action milestone Aug 7, 2015
@mishabello
Copy link

Yes, please, give me a pointer.

@Carreau
Copy link
Member

Carreau commented Sep 5, 2015

ON master you can do Ctrl-shift-P (cmd on mac) filter for search and replace, then you should get a search and replace dialog. It needs improvement though.

Once you have it working I can point you to the relevant bit of code if you want to tinker with it.

@mishabello
Copy link

I got it working and it is very nice. What improvements do you have in
mind? What part of the code needs to be changed?

On Sat, Sep 5, 2015 at 6:15 AM, Matthias Bussonnier <
notifications@github.com> wrote:

ON master you can do Ctrl-shift-P (cmd on mac) filter for search and
replace, then you should get a search and replace dialog. It needs
improvement though.

Once you have it working I can point you to the relevant bit of code if
you want to tinker with it.


Reply to this email directly or view it on GitHub
#263 (comment).

@Carreau
Copy link
Member

Carreau commented Sep 11, 2015

IIRC, one of the request was the ability to unselect each replacement individually, something like a checkbox on the side of each replacement.

Also there is non "pure search", it would be nice if the replacement is empty to actually just hightlight all the matchings, and have a shortcut to scroll to next match, or select next match/ select previous match.

@ggrrll
Copy link

ggrrll commented Jan 19, 2017

Hi,

(I don't know if this is the right place to ask )

is there/do you plan to add a quick shortcut that allows users to quickly find the selected string ? — like in sublime text, for instance — without having to type cmd+C, cmd+F, cmd+V

Thanks for your help

ps: same question, but also for 'function definition' and 'function documentation' (I know I can type
?function_name, after opening another cell but still, would be useful to have something faster)

@ggrrll
Copy link

ggrrll commented Jan 19, 2017

pps: another nice feature would be to make the results of the 'find-window' clickable, in a way that re-send you directly to the corresponding line/cell in the notebook

@Arsova
Copy link

Arsova commented Jul 11, 2018

Maybe it is late to add a comment but just in case : the command Esc+F in one of the cells will bring a simple find and replace a window in Jupyter Notebook.

@Quetzalcohuatl
Copy link

If you want to find an replace in every cell, please see this post. https://stackoverflow.com/questions/49933535/how-can-i-select-every-cell-in-an-ipython-notebook Basically, you have to click an extra button if you want to perform find+replace on every cell.

@eromoe
Copy link

eromoe commented May 14, 2019

How can I bind ctrl+shift+f to find and replace on every cell ???
There is only a function

Jupyter.keyboard_manager.command_shortcuts.add_shortcut('s', 'jupyter-notebook:find-and-replace');

@matt-proof
Copy link

matt-proof commented Sep 18, 2020

This became available in 2016: See this Jupyter blog post

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants