Re:Enable tab-completion in the interactive interpreter by d...
by takluyver on Sunday May 05, 2013 @12:21PM
(#5658822)
A global installation of IPython now recognises if you start it with a virtualenv active, and adds the virtualenv to sys.path so that you can import modules installed there.
It isn't limited to packages in the virtualenv - that is, it always behaves like you created the virtualenv with system-site-packages enabled, because it is importing its own modules from there. But for most interactive use, that's not a problem.
Re:Enable tab-completion in the interactive interpreter by d...
by e12e on Sunday May 05, 2013 @11:54AM
(#5658692)
AFAIK if you're using virtualenvs, you'd best bet would be various approaches to caching/proxying pypi. Won't help if the actual install (compile) times of ipython is a problem though.
Re:Enable tab-completion in the interactive interpreter by d...
by tshepang on Sunday May 05, 2013 @11:30AM
(#5658596)
You can always install it directly, and not in a virtualenv. Am I missing something?
Re:Enable tab-completion in the interactive interpreter by d...
by Buttons840 on Sunday May 05, 2013 @11:42AM
(#5658641)
If it's installed globally then it wont have access to the libraries installed only in the virtualenv. I think there's a way to work around this, but I haven't taken the time to look into it.
Re:Enable tab-completion in the interactive interpreter by d...
by eclipticplane on Sunday May 05, 2013 @12:45PM
(#5658918)
This should be fixed in the latest iPython versions. iPython is now virtualenv-aware -- it'll add your venv path at startup even if iPython is installed in global site-packages.
I dunno, is there a better way, maybe installing iPython globally, but rewriting the shebang line to use /usr/bin/env python?