首页 > 解决方案 > 如何从 Jupyter 笔记本中删除 emacs 键绑定?

问题描述

在过去的某个时候,我使用以下软件包将 emacs 键绑定安装到我的 jupyter 笔记本中:https ://github.com/rmcgibbo/jupyter-emacskeys

我正在尝试删除它们,因为在笔记本中的键绑定对我来说不如在 emacs 中那样好用,我更喜欢默认的键绑定。

我尝试使用卸载键绑定

pip uninstall jupyter-emacskeys

虽然它确实卸载了软件包,但键绑定仍然存在。我尝试通过运行重新安装 jupyter

pip uninstall jupyter pip install jupyter

但是键绑定再次保留,如何恢复默认键绑定?

标签: pythonjupyter-notebookkeyboard-shortcuts

解决方案


打开文件~/.jupyter/nbconfig/notebook.json,你的load_extensions值是这样的: "load_extensions": { "jupyter_emacskeys/init": true } 只需删除它并重新启动内核。


推荐阅读