Skip to content

Commit fc8365a

Browse files
committed
output formatting
1 parent 0026fda commit fc8365a

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

pystackql/magic_ext/base.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,9 @@ def _display_with_csv_download(self, df):
7373
# Create download link
7474
download_link = f'data:text/csv;base64,{csv_base64}'
7575

76-
# Display the DataFrame first
77-
IPython.display.display(df)
76+
# # Display the DataFrame first
77+
# IPython.display.display(df)
7878

79-
# # Create and display the download button
80-
# download_html = f'''
81-
# <div style="margin-top: 10px;">
82-
# <a href="{download_link}" download="stackql_results.csv"
83-
# style="display: inline-block; padding: 8px 16px; background-color: #007cba;
84-
# color: white; text-decoration: none; border-radius: 4px;
85-
# font-family: Arial, sans-serif; font-size: 14px; border: none; cursor: pointer;">
86-
# 📥 Download CSV
87-
# </a>
88-
# </div>
89-
# '''
90-
9179
# Create and display the download button
9280
download_html = f'''
9381
<div style="margin-top: 15px; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;">
@@ -105,7 +93,7 @@ def _display_with_csv_download(self, df):
10593
</a>
10694
</div>
10795
'''
108-
96+
10997
IPython.display.display(IPython.display.HTML(download_html))
11098

11199
except Exception as e:

0 commit comments

Comments
 (0)