Feature request: enable editing_mode = ‘vi’ for a ZMQTerminalIPythonApp console
还没有人认领这个 Issue。
评估
调研方向
重现 vanilla IPython 控制台与连接到现有 kernel 的 jupyter console 之间的差异,然后跟踪 ZMQTerminalIPythonApp 和 ZMQInteractiveShell。比较 vanilla shell 如何公开 editing_mode,并确定连接的控制台需要什么才能同时支持 emacs 和 vi 模式。
由索引模型根据 Issue 内容生成。
描述
When starting a vanilla kernel (e.g. invoking ‘ipython’) it is possible to change the editing mode between ‘emacs’ or ‘vi’. There are other ways of doing it but a simple one is to:
ipython
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.16.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: ip = get_ipython()
In [2]: ip.editing_mode
Out[2]: 'emacs'
In [3]: ip.editing_mode = 'vi'
[ins] In [4]:
But when connecting to a jupyter-lab-made kernel this is not possible:
# after starting a kernel in jupyer lab and getting its info using %connect_info
jupyter console --existing kernel-00463bd1-4faf-4491-a903-a7179a6d4ceb.json
[ZMQTerminalIPythonApp] WARNING | Config option `kernel_spec_manager_class` not recognized by `ZMQTerminalIPythonApp`. Did you mean `kernel_manager_class`?
Jupyter console 6.6.3
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.16.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: ip = get_ipython()
In [6]: ip.editing_mode
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[6], line 1
----> 1 ip.editing_mode
AttributeError: 'ZMQInteractiveShell' object has no attribute 'editing_mode'
In [7]:
- 主要语言
- Python
- 星标
- 734
- 派生
- 411
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 9
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ipython/ipykernel 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 68/100
-
难度 3/5 1-2 天 新手友好度 66/100
查看 ipython/ipykernel 的全部 Issue
相似的 Issue
-
triage/confirmed
难度 2/5 1-3 小时 新手友好度 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
难度 1/5 1 小时以内 新手友好度 92/100
NousResearch/hermes-agent#118866 ·
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
apache/cloudstack#14222 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
-
bug
难度 2/5 1-3 小时 新手友好度 82/100