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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -