Reputation: 533
I'm using GPU on Google Collab. How can I run 2 python scripts simultaneously to get a continuous evaluation for my data? I have tried
!python script1.py &
!python script2.py &
but it didn't work.
Thanks in advance!
Upvotes: 5
Views: 4341
Reputation: 2280
You can use the built-in magic %%bash
as first line in your cell:
%%bash
python script1.py &
python script2.py &
Upvotes: 0
Reputation: 394
I've not tried this yet, however, with ipython you can run a python script simply as
run myscript.py
Upvotes: 2