Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

search words in ipython-notebook

Literally , IPython-Notebook is notebook. I try to work with it as notebook.

So is there way I can search keywords or more complex search in a collection of ipynb I had written ? Just like Evernote allow you do more complex search for your notes.

like image 351
WeiChing 林煒清 Avatar asked Nov 10 '22 03:11

WeiChing 林煒清


1 Answers

on OS UBUNTU 18.04 I am positioned in my directory called work, and in my dir work there is an directory named IPYNB where there are all my ipynb files somes into sub-folders

I m searching for the string “trigFromTanEqL” in one of my ipynb file, so: I enter the command :grep -rnw './' -e "trigFromTanEqL"

SageMath/work$ grep  -rnw './' -e "trigFromTanEqL"
./IPYNB/LinearAlgebraMIT/.ipynb_checkpoints/exoTrigo-checkpoint.ipynb:496:    "trigFromTanEqL=[sin(t_1)==tan(t_1)/(sqrt(1+tan(t_1)^2)), cos(t_1)==1/(sqrt(1+tan(t_1)^2)) , \\\n",
./IPYNB/LinearAlgebraMIT/.ipynb_checkpoints/exoTrigo-checkpoint.ipynb:501:    "ftan(t_1,t_2)=f.subs(trigFromTanEqL)\n",
./IPYNB/LinearAlgebraMIT/exoTrigo.ipynb:496:    "trigFromTanEqL=[sin(t_1)==tan(t_1)/(sqrt(1+tan(t_1)^2)), cos(t_1)==1/(sqrt(1+tan(t_1)^2)) , \\\n",
./IPYNB/LinearAlgebraMIT/exoTrigo.ipynb:501:    "ftan(t_1,t_2)=f.subs(trigFromTanEqL)\n",
like image 199
Tagada Avatar answered Dec 04 '22 04:12

Tagada