是否有用于jupyter笔记本的docstring自动完成工具? [英] Is there a docstring autocompletion tool for jupyter notebook?

查看:158
本文介绍了是否有用于jupyter笔记本的docstring自动完成工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种工具/扩展名,可以帮助您在jupyter笔记本中编写python文档字符串.

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

我通常使用VS代码,其中具有自动生成的 autodocstring 扩展名文档字符串的模板(例如,狮身人面像或numpy模板).在jupyter笔记本中有与此等效的东西吗?

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.

推荐答案

在笔记本单元格中运行此操作

run this in a Notebook cell:

%config IPCompleter.greedy=True

然后在要执行自动完成的位置按Tab.

Then press tab where you want to do autocomplete.

(摘录自 Reddit帖子)

这篇关于是否有用于jupyter笔记本的docstring自动完成工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆