Release Unmanaged Resources of the Workbook with Python via .NET

Contents
[ ]

The Workbook class implements Python’s context manager protocol for resource management. You can either explicitly call the close() method or use Python’s with statement to ensure proper cleanup.

from aspose.cells import Workbook

# Create workbook object
    with aspose.cells.Workbook() as wb:
         wb.save("dispose.xlsx")
         pass