如何使用 jupyter 笔记本查看 Python class 文档字符串?

How to view a Python class docstrings using jupyter notebook?

spyder IDE 中,可以在实例化 class 时按 ctrl+i 以调出与该 class 关联的文档字符串。 jupyter notebook中是否有类似的功能?

对于当前版本的 Jupyter 笔记本,您可以点击 Shift-Tab 来调出 class 的签名和文档字符串。这个问题与其他这些问题高度相关(所以我将其标记为重复)。

  • IPython Notebook Tab-Complete -- Show Docstring