pycharm 中的 Jupyter 笔记本在 Pycharm 中没有本地历史支持吗? [英] Jupyter notebooks in pycharm do not have Local History support in Pycharm?
问题描述
Local History
绝对是 Jetbrains
IDE 系列的基本/关键特性 - 包括 Pycharm
.为什么 .ipynb
文件会丢失它?这是右键单击/上下文菜单 - 其中缺少 Show History
:
Local History
is an absolutely fundamental/crucial feature of Jetbrains
IDE families - including Pycharm
. Why would it be missing for the .ipynb
files? Here is the right click/context menu - in which the Show History
is missing:
此外:代码编辑历史导航
功能在笔记本中不起作用:请注意,即使我编辑了此笔记本,上次编辑位置
选项也已禁用:
In addition: the Code Editing History Navigation
feature is not working in the notebooks: notice that the Last Edit Location
option is disabled even though I had edited this notebook:
为什么这些笔记本缺少基本/核心代码编辑功能?有没有办法启用它们?
Why are basic/core code editing features missing for these notebooks? Is there a way to enable them?
推荐答案
PyCharm 中的 notebook 源代码表示基本上是一个虚拟文件,因为 .ipynb
本身是一个 JSON.这让事情变得复杂,因为我们不想显示 JSON 的历史,而是 Python 表示.Local History 最终将被实现,因为它确实是一个核心功能,但它需要一些时间,因为它必须进行调整以支持这种情况.PyCharm 的错误跟踪器中的专用票 https://youtrack.jetbrains.com/issue/PY-33557
The notebook source code representation in PyCharm is basically a virtual file as a .ipynb
itself is a JSON. This makes thing complicated as we don't want to show history for JSON but for Python representation. Local History is going to be eventually implemented as it's a core functionality indeed, but it will require some time as it has to be tweaked to support this case. The dedicated ticket in PyCharm's bug tracker https://youtrack.jetbrains.com/issue/PY-33557
这篇关于pycharm 中的 Jupyter 笔记本在 Pycharm 中没有本地历史支持吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!