python - how to read and and untar tar.gz files in IPython -
i tried
%%sh tar xvf filename.tar.gz
but didn't work. how read tar.gz files in ipython.
thanks
i can't understand why want python (and specially ipython), it's ok...
for put command system python use subprocess:
from subprocess import call # first param must command, , options, # call(["tar", "-xzf", "filename.tar.gz"])
and must work not on ipython, in every python program.
Comments
Post a Comment