Start ipython qtconsole as interactive interpreter after script execution

[亡魂溺海] 提交于 2019-12-04 06:19:37
Greg

Interesting, it seems that either this option was forgotten or not wanted in the qtconsole. A way around this (or perhaps an intended way?) is to use the -m flag. This runs a module as a script so you if you called:

ipython qtconsole -m my_script

it will run the code in my_script, for me this works. Notice it needs to be my_script not my_script.py otherwise it will throw an error since it's looking for the module not the file. Hope that helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!