当前位置: 首页 > 工具软件 > nvim-ipy > 使用案例 >

virtualenv 下使用ipython

拓拔嘉颖
2023-12-01


~/.bashrc中配置

#virtualenv wrapper

export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh


alias 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.


 类似资料: