IPython 默认是不会使用当前环境的虚拟环境的,不过可以变通一下通过先打开 python shell 交互界面,然后倒入 IPython 模块的形式在达到目的。
我们直接修改 shell 命令别称
1 | alias ipy="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'" |
最近热读
扫码关注公众号,或搜索公众号“温欣爸比”
及时获取我的最新文章
