Re:Bpython is a fancy interface to the Python interpreter
by k_bx on Monday May 21, 2012 @03:36AM
(#4001752)
Offtopic: with all these ipython/bpython's only thing that bugs me is need to do pip install -U ipython bpython (which downloads significant portion of bytes) in every virtualenv. I wonder if there's something like "pip install -U ipython --local-cache" option to copy existing ipython inside this virtualenv.
[ Parent
| on HN ]
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 ...