def xl_fibonacci():
    # Create a reference to the calling Excel Workbook
    wb = Workbook.caller()

    # Get the input from Excel and turn into integer
    n = Range('B1').options(numbers=int).value

    # Call the main function
    seq = fibonacci(n)

    # Clear output
    Range('C1').vertical.clear_contents()

    # Return the output to Excel in column orientation
    Range('C1').options(transpose=True).value = seq
This is a wrapper around fibonacci() to handle all the Excel stuff
dataset/ETHPy150Open ZoomerAnalytics/xlwings/examples/fibonacci/fibonacci.py/xl_fibonacci