5 ms·
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) i
by k_bx 14y ago
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.
- urschrei 14y agoThere is: http://stackoverflow.com/questions/4806448/how-do-i-install-from-a-local-cache-with-pip http://stackoverflow.com/questions/4806448/how-do-i-install-...
- k_bx 14y agoWow, thanks a lot! I wonder why it's not in default somewhere.
- gvalkov 14y agoIf 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 http://pypi.python.org/pypi/virtualenvwrapper
- DasIch 14y agovirtualenvwrapper 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.