Answer the question
In order to leave comments, you need to log in
Google Colab: how to send python variable value to terminal command?
Google Colab can run ipynb files.
There is a cell (cell) with a code.
import os
os.mkdir('123')
name = '123'
!rm -r name
Answer the question
In order to leave comments, you need to log in
https://ipython.readthedocs.io/en/stable/interacti...
says it works like this:!rm -r $name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question