在 Google Colab 中运行 2 个 python 脚本

Huy*_*yen 5 python concurrency ipython jupyter-notebook google-colaboratory

我在 Google Collab 上使用 GPU。如何同时运行 2 个 python 脚本来持续评估我的数据?我努力了

!python script1.py &
!python script2.py &
Run Code Online (Sandbox Code Playgroud)

但没有成功。

提前致谢!

小智 2

我还没有尝试过这个,但是,使用 ipython 你可以简单地运行一个 python 脚本

运行 myscript.py