Jupyter notebooks in pycharm do not have Local History support in Pycharm?

落花浮王杯 提交于 2020-01-05 06:45:15

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/56456755/jupyter-notebooks-in-pycharm-do-not-have-local-history-support-in-pycharm

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