~/.bashrc中配置
#virtualenv wrapper
export WORKON_HOME=$HOME/.virtualenvsalias vipython="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'"
workon env
vipython
即可
django 中:
python manage.py shell -i ipython
来启动ipython,而不是直接ipython manage.py shell,这样会提示MultipleInstanceError: Multiple incompatible subclass instances of InteractiveShellEmbed are being created.
An exception has occurred, use %tb to see the full traceback.