当调用为ipython
时,可以执行edit myfile.py
,使用该文件打开默认编辑器。我想使用'两个进程'模型,以便我可以将多个客户端连接到同一个内核。但这似乎不允许打开编辑。它是按设计的吗?有解决方法吗?
hostname:folder$ ipython console Python 2.7.3 (default, Oct 10 2012, 08:04:12) Type "copyright", "credits" or "license" for more information. IPython 0.13.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. [IPKernelApp] To connect another client to this kernel, use: [IPKernelApp] --existing kernel-56549.json In [1]: edit somefile.py In [2]:
答案 0 :(得分:0)
来自@Thomas K的评论 这是一个已知的问题 https://github.com/ipython/ipython/issues/3030
%edit
功能在两个流程模型中不起作用。