mwouts / itables

Pandas DataFrames as Interactive DataTables
https://mwouts.github.io/itables/
MIT License
761 stars 56 forks source link

issue with conversion of notebook to pdf #307

Closed pali07 closed 1 month ago

pali07 commented 1 month ago

Hi , i want to convert the jupyter notebook into pdf format. I am using jupyter nbconvert --to pdf notebook.ipynb command. I want to display the whole table but it is not displaying. image Can you please help me with this ?

I want to convert to pdf because i want to export the whole output of the specific cell in the jupyter notebook? Or is there any way to do this without converting to pdf Thanks for the helping....

mwouts commented 1 month ago

Hi @pali07 , well PDF is not a natural output format for ITables - remember that ITables is a wrapper for https://datatables.net/, a javascript library. Can you use HTML instead?

You can export the full notebook to HTML with jupyter nbconvert --to html.

Alternatively, if you are looking to export just one table to HTML, you can use to_html_datatable.

pali07 commented 1 month ago

Thank you @mwouts for the quick response. I will use html format for my use case