Update app.py
Browse files
app.py
CHANGED
|
@@ -275,21 +275,8 @@ def server(input, output, session):
|
|
| 275 |
|
| 276 |
fig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)
|
| 277 |
|
| 278 |
-
|
| 279 |
-
# # Download handler for CSV
|
| 280 |
-
# @session.download(filename="data.csv")
|
| 281 |
-
# def download_data():
|
| 282 |
-
# # Create a string buffer
|
| 283 |
-
# buffer = StringIO()
|
| 284 |
-
# # Write the DataFrame to the buffer
|
| 285 |
-
# cached_data().write_csv(buffer)
|
| 286 |
-
# buffer.seek(0)
|
| 287 |
-
# # Get the string value and return it
|
| 288 |
-
# return buffer.getvalue()
|
| 289 |
-
|
| 290 |
-
|
| 291 |
|
| 292 |
-
@session.download()
|
| 293 |
def download_data():
|
| 294 |
pass
|
| 295 |
|
|
|
|
| 275 |
|
| 276 |
fig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)
|
| 277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
|
| 279 |
+
@session.download('data.csv')
|
| 280 |
def download_data():
|
| 281 |
pass
|
| 282 |
|