News for hackers. Stuff that matters.
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.
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

Re:Bpython is a fancy interface to the Python interpreter by urschrei on Monday May 21, 2012 @04:18AM (#4001870)
Re:Bpython is a fancy interface to the Python interpreter by k_bx on Monday May 21, 2012 @10:21AM (#4002959)
Wow, thanks a lot! I wonder why it's not in default somewhere.
Re:Bpython is a fancy interface to the Python interpreter by DasIch on Monday May 21, 2012 @10:10AM (#4002903)
virtualenvwrapper has scripts that run after certain operations e.g. creating a virtualenv. I use this to install bpython, sphinx and tox into every new virtualenv.