News for hackers. Stuff that matters.
Re:Bpython is a fancy interface to the Python interpreter by gvalkov on Monday May 21, 2012 @06:52AM (#4002204)
If you simply wish to access a virtualenv from your system ipython, you could do:

    with open('path/to/venv/bin/activate_this.py') as fh:
        exec(fh.read(), {'__file__' : fh.name})
Actually, having a %workon magic command for virtualenvwrapper[1] users seems like a useful thing. I think I'll write that ...

[1] http://pypi.python.org/pypi/virtualenvwrapper

There are no comments on this comment yet.