I need the following Python/flask code so it creates an excel files to be downloaded + a list of Python packages that are required (e.g. flask-excel)
@[url removed, login to view]('/export_excel')
session_data = extract_matrix(session) # session_data is the m*n matrix that need to
be writtwen into the excel file.
# Here, include the code that creates the excel from session_data and stores it as
'[url removed, login to view]' in a folder '/files' on the server. Alternatively, if it is possible to doenload the
file without storing it on the server, this is also good. In any case, it must work via Flask!
return send_file('files/[url removed, login to view]',
attachment_filename='[url removed, login to view]',