<div dir="ltr">I am experimenting with different ways of installing an extension I wrote (grasp, mentioned a few days ago on ipython-user).  It contains multiple files, so <div>%install_ext blah/blah.py won't work.  <br>
</div><div><div><br></div><div>The documentation suggests that this will work:<br><div style>%install_ext blah/blah/grasp.zip</div></div></div><div style>It does indeed put the file into .ipython/extensions, but then to use it I need to put the zip file in sys.path explicitly.  Just having the zip file in the extensions directory isn't enough.  So if I also do:</div>
<div style><br></div><div style>import sys</div><div style>sys.path += ["/Users/novak/.ipython/extensions/grasp.zip"]</div><div style><br></div><div style>then it works to say </div><div style>%load_ext grasp</div>
<div style><br></div><div style>What's the intended behavior here?  Is this supposed to work?  At least for me, it can be made to work either by having %install_ext extract the zip file into the extensions directory or else have %install_ext put code into the ipython startup files that explicitly add the zip file to sys.path.  </div>
<div style><br></div><div style>For the moment, my extension is installable via "pip install grasp" so it's not a huge deal if it can't be installed via %install_ext.  </div><div style><br></div><div style>
I found the information about using %install_ext on zip files in the docstring for install_ext.</div><div style><br></div><div style>Thanks,</div><div style>Greg</div><div style><br></div></div>