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

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -