Skip to content

Commit b309600

Browse files
committed
Merge branch 'main' into xlsx_with_multiple_sheets
- some repetitions occured...
2 parents 26388f0 + 7c41955 commit b309600

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/vuegen/quarto_reportview.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,6 @@ def _generate_markdown_content(self, markdown) -> List[str]:
864864

865865
# Code to display md content
866866
markdown_content.append("""display.Markdown(markdown_content)\n```\n""")
867-
markdown_content.append("""display.Markdown(markdown_content)\n```\n""")
868867

869868
except Exception as e:
870869
self.report.logger.error(
@@ -899,7 +898,7 @@ def _show_dataframe(self, dataframe) -> List[str]:
899898
if self.is_report_static:
900899
# Generate path for the DataFrame image
901900
fpath_df_image = (
902-
Path(static_dir) / f"{dataframe.title.replace(' ', '_')}.png"
901+
Path(self.static_dir) / f"{dataframe.title.replace(' ', '_')}.png"
903902
)
904903
dataframe_content.append(
905904
f"df.dfi.export('{Path(fpath_df_image).relative_to('quarto_report').as_posix()}',"
@@ -910,7 +909,7 @@ def _show_dataframe(self, dataframe) -> List[str]:
910909
else:
911910
# Append code to display the DataFrame interactively
912911
dataframe_content.append(
913-
f"""show(df, classes="display nowrap compact", lengthMenu=[3, 5, 10])\n```\n"""
912+
"""show(df, classes="display nowrap compact", lengthMenu=[3, 5, 10])\n```\n"""
914913
)
915914

916915
return dataframe_content

src/vuegen/streamlit_reportview.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from pathlib import Path
66
from typing import List
77

8-
import pandas as pd
98
from streamlit.web import cli as stcli
109

1110
from . import report as r

0 commit comments

Comments
 (0)