News for hackers. Stuff that matters.
Re:Enable tab-completion in the interactive interpreter by d... by aaronharnly on Sunday May 05, 2013 @11:08AM (#5658514)
I use virtualenv for all projects, and frequently destroy and recreate virtualenvs. iPython takes a good while to install; doing it over and over again in fresh virtualenvs gets to be a chore, so I tend to do it only when I really need it.

I dunno, is there a better way, maybe installing iPython globally, but rewriting the shebang line to use /usr/bin/env python?

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.
Re:Enable tab-completion in the interactive interpreter by d... by tshepang on Sunday May 05, 2013 @12:31PM (#5658857)
Now I know what I missed.
Re:Enable tab-completion in the interactive interpreter by d... by xnxn on Sunday May 05, 2013 @11:40AM (#5658633)
That would require you to enable global site- packages for that virtualenv.