Find Your Code Hiding In Some Jupyter Notebook With Ease
Programmers who use Jupyter often refer to their old notebooks to find a piece of code.
However, it gets tedious when they have multiple files to look for and can't recall the specific notebook of interest. The file name 𝐔𝐧𝐭𝐢𝐭𝐥𝐞𝐝1.𝐢𝐩𝐲𝐧𝐛, ..., and 𝐔𝐧𝐭𝐢𝐭𝐥𝐞𝐝82.𝐢𝐩𝐲𝐧𝐛, don't make it any easier.
The "𝐠𝐫𝐞𝐩" command is a much better solution to this. Very know that you can use "𝐠𝐫𝐞𝐩" in the command line to search in notebooks, as you do in other files (.txt, for instance). This saves plenty of manual work and time.
P.S. How do you find some previously written code in your notebooks (if not manually)?
Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.
Read this post on LinkedIn: Post Link.
I like to explore, experiment, and write about data science concepts and tools. You could connect with me on LinkedIn.