@@ -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
0 commit comments