我有一个 python Flask web 应用程序,它使用 plotly 的 dash 应用程序上传 CSV/txt 文件以使用 Pandas Profiling 进行处理。在我的本地服务器上一切正常,但是一旦我将它发布到 Azure Web 应用程序,它就不再生成带有 Pandas 分析结果的新 HTML 文件。在本地完成时,HTML 确实有我的本地驱动器地址位置到 HTML 文件,但不确定如何为在线 Web 应用程序解决此问题。
请在下面查看我的代码。不确定我需要什么才能让 Web 应用程序生成带有结果的新 HTML 页面。
profile = ProfileReport(
df.sample(n=100000, replace=True), title='Pandas Profiling Report Results: [ ' + filename + ' ]', explorative=True)
profile.to_file(output_file="Profiling_Report_Results.html")
webbrowser.open("Profiling_Report_Results.html", new=2)