dexplo / dataframe_image

A python package for embedding pandas DataFrames as images into pdf and markdown documents
https://dexplo.org/dataframe_image
MIT License
282 stars 41 forks source link

Unnecessary lines added for each page: "Loading [MathJax]/jax/output/CommonHTML/fonts/TeX/fontdata.js" #66

Closed wbfw109 closed 1 year ago

wbfw109 commented 1 year ago

Code image

Output message image

Superseded last line for each page in pdf file image

PaleNeutron commented 1 year ago

Can you provide a minimal test code here?

It is hard for me to reproduce it.

wbfw109 commented 1 year ago

I'm sorry for not adding a test environment.

That code is all.

PaleNeutron commented 1 year ago

Sorry but I can not reproduce it by following code (put it into ipynb by yourself):

import pandas as pd
import numpy as np
import dataframe_image as dfi
from IPython.display import display

df = pd.DataFrame(np.random.rand(5,10))
display(df)

dfi.convert('dfi.ipynb',
                to='pdf',
                use='latex',
                center_df=True,
                max_rows=30,
                max_cols=10,
                execute=False,
                save_notebook=False,
                limit=None,
                document_name=None,
                table_conversion='chrome',
                chrome_path=None,
                latex_command=None,
                output_dir=None,
                )

dfi.pdf

It works even I put some latex equation which implemented by mathjax in it.

image
wbfw109 commented 1 year ago

I tested again previous code. but I can not get same pdf file. Loading [MathJax]/jax/output/CommonHTML/fonts/TeX/fontdata.js does not appeared.

but output message is completely same.

output

I don't know what's problem. but now is ok. If there are no issues after that, I will close the issue. Thanks you for testing.