Is there a docstring autocompletion tool for jupyter notebook?

99封情书 提交于 2021-02-07 07:01:23

问题


I am looking for a tool/extension that helps you writing python docstrings in jupyter notebook.

I normally use VS code where you have the autodocstring extension that automatically generates templates (e.g. the sphinx or numpy template) for docstrings. Is there an equivalent to this in jupyter notebook?

I have been looking online for a long time now, but have trouble finding it.


回答1:


run this in a Notebook cell:

%config IPCompleter.greedy=True

Then press tab where you want to do autocomplete.

(Extracted from Reddit post)



来源:https://stackoverflow.com/questions/54594779/is-there-a-docstring-autocompletion-tool-for-jupyter-notebook

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