4

I am using Jupyter and I was wondering if there is a way to auto generate doc string for a function? Seems like PyCharm and Spyder has that functionality but I can't find one for Jupyter notebook.

I want to have something like this

def func(foo,bar):
    """
    Parameters
    --------------
    foo : TYPE
        DESCRIPTION
    bar : TYPE
        DESCRIPTION

    Returns
    --------------
    TYPE
        DESCRIPTION
    """
    #dosomething
Young
  • 97
  • 5

1 Answers1

0

have you tried to install Jupyter Notebook on VS Code Then install extension python Docstring?

Python Docstring Generator

Ahmed
  • 796
  • 1
  • 5
  • 16
  • 2
    Well, the OP was specifically asking for a solution for Jupyter Notebook, and **NOT** for VS Code – ruslaniv Mar 18 '22 at 13:23