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

Feature Request - Add Code Search Bar to Jupyter Notebook #7053

Closed
Hs918131 opened this issue Sep 16, 2023 · 7 comments
Closed

Feature Request - Add Code Search Bar to Jupyter Notebook #7053

Hs918131 opened this issue Sep 16, 2023 · 7 comments
Labels

Comments

@Hs918131
Copy link

Subject: Feature Request - Add Code Search Bar to Jupyter Notebook

Description:

Problem:
Currently, in Jupyter Notebook, navigating and searching for specific code snippets or variables within a large notebook can be challenging and time-consuming. Users often have to manually scroll through the code cells, which can be cumbersome and inefficient, especially in notebooks with extensive code sections.

Feature Request:
I propose the addition of a "Code Search Bar" to the Jupyter Notebook interface. This feature will greatly enhance the user experience by enabling users to search for specific code, variable names, or keywords within the code cells easily.

Key Features:

The "Code Search Bar" should be located in the code section of the notebook interface.
Users should be able to enter keywords or phrases in the search bar.
Upon entering a search query, the notebook should highlight or display the code cells that contain matching text.
The search results should include a brief context snippet to provide users with a quick overview of where the code or variable is located.
Users should have the option to navigate through multiple search results efficiently.
The search should be case-insensitive to ensure flexibility in searching.
An intuitive UI for clearing the search or navigating between search results should be provided.
Use Cases:

Researchers and data scientists working with large Jupyter Notebooks can quickly locate and reference specific code blocks or variables, improving their productivity.
Educational institutions can benefit from this feature by making it easier for students to find and understand relevant code sections within instructional notebooks.
Collaborative work on Jupyter Notebooks will become more efficient as team members can easily find and discuss specific code segments.
Additional Notes:

It would be beneficial to implement keyboard shortcuts for the search functionality to streamline the user experience further.
The feature should work seamlessly with JupyterLab if possible, as many users have transitioned to that interface.
References:

This feature aligns with the growing need for enhanced code navigation and search capabilities in Jupyter Notebook, as discussed in various user forums and communities.
I believe that the addition of a "Code Search Bar" will significantly improve the usability and productivity of Jupyter Notebook users. I kindly request the development team to consider this feature request for implementation.

Thank you for your attention to this proposal, and I look forward to seeing this feature in future Jupyter Notebook releases.

Environment Information:

Jupyter Notebook Version (if applicable): [Insert Jupyter Notebook version here]
Operating System: [Insert your operating system]
Browser (if using JupyterLab): [Insert your browser and version]
Please feel free to provide any feedback or suggestions to further refine this feature request.

<img width="1440" alt="Screenshot 2023-09-16 at 11 51 02 AM"

src="https://github.com/jupyter/notebook/assets/91822610/e81ff6e3-a3be-44f6-8a49-82f08cc2d529">

@Hs918131 Hs918131 added enhancement status:Needs Triage Applied to issues that need triage labels Sep 16, 2023
@Hs918131 Hs918131 changed the title feat: Add Feature Request - Add Code Search Bar to Jupyter Notebook Sep 16, 2023
@RRosio
Copy link
Collaborator

RRosio commented Sep 19, 2023

Thank you for opening this issue @Hs918131. Have you tried using the search functionality under Ctrl + F? If so, how does this request differ from that functionality?

@JasonWeill
Copy link
Collaborator

You can also open the search box using CMD + F (macOS) or Edit > Find (any OS)

@RRosio
Copy link
Collaborator

RRosio commented Sep 26, 2023

Hi @Hs918131, another suggestion coming from the Triage meeting, you can give Notebook 7 a try to see if the search functionality meets your needs.

@Hs918131
Copy link
Author

@RRosio Okay sure

@RRosio
Copy link
Collaborator

RRosio commented Oct 3, 2023

Thanks @Hs918131, if you would be willing to share whether the Notebook 7 search bar met your needs please let us know!

@RRosio
Copy link
Collaborator

RRosio commented Oct 10, 2023

Hi @Hs918131, since Notebook 6 is now only taking security and bug fixes, and this feature has now been implemented in Notebook 7, I will encourage you to take a look at Notebook 7. I'll go ahead and close this issue but if you have any issues or suggestions for enhancements to this functionality in Notebook 7 please open another issue. Thank you for your initial request!

@RRosio RRosio closed this as completed Oct 10, 2023
@Hs918131
Copy link
Author

okay sure

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

No branches or pull requests

3 participants