Re: Run code automatically

2020-04-20 Thread hanan lamaazi
Yes I try to do it but it doesn't work for two reasons: I write my code as blocks in jupyter notebook and for each block I use different datasets that I loc, iloc or concat according to my need. for this reasons I export it as .py file to run it externally

Re: Run code automatically

2020-04-20 Thread Souvik Dutta
No no I did not tell you to do it in that way. I said you could try putting the whole the code in the .py file in a for loop. That is:- for a in range(10): On Mon, 20 Apr, 2020, 1:55 pm hanan lamaazi, wrote: > Yes, so to do it I save my code as filename.ipynb and go to terminal (cmd) > I w

Re: Run code automatically

2020-04-20 Thread hanan lamaazi
Yes, so to do it I save my code as filename.ipynb and go to terminal (cmd) I write the following commande: >> run for x in {1..10}; do (ipython filename.ipynb > /tmp/$x.log) & done it gives the following error: ERROR: root:File ''for.py'' not found I use another one: >> for filename in $(find

Re: Run code automatically

2020-04-16 Thread Souvik Dutta
Do you want to run the code many times after just clicking run once? If so then I think grouping the whole program in one for loop would do the task. Souvik python dev On Thu, Apr 16, 2020, 4:57 PM hanan lamaazi wrote: > Dear All, > > I just start the self learning of python, and I tried to use

Run code automatically

2020-04-16 Thread hanan lamaazi
Dear All, I just start the self learning of python, and I tried to use it in jupyter notebook. I work on real dataset and I used pandas for that. Now my problem is I developed two separate code but dependent the first one should run to give me samples from my dataset and do the clustering (I use