Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a script shell in google Colab?

I want to run a script shell in colab, i used "!" and also i tried "%%shell" enter image description here

like image 931
Jonasyou Avatar asked Dec 24 '22 01:12

Jonasyou


1 Answers

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

enter image description here

like image 69
Bob Smith Avatar answered Jan 01 '23 08:01

Bob Smith