How to run a script shell in google Colab?

前端 未结 2 1840
悲&欢浪女
悲&欢浪女 2021-01-14 06:58

I want to run a script shell in colab, i used \"!\" and also i tried \"%%shell\"

2条回答
  •  不知归路
    2021-01-14 07:31

    Either %%shell or ! should work. I suspect your shell script isn't in your current working directory.

    You can check the contents of your current directory by running %ls

    Here's a complete example of running a shell script: https://colab.research.google.com/drive/1i5lHPcsmcgeoFEGg0Dfwjhblsm2iMExP

提交回复
热议问题