mwouts / itables

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

Conversion to HTML shows only header line #32

Closed axel-loewe closed 2 years ago

axel-loewe commented 2 years ago

When running jupyter nbconvert --to html test.ipynb

to convert the example script from the website (see below), the resulting html page only shows the header of table but no contents. When inspecting the HTML code, the header is in plain HTML while the data are in a JavaScript. However, they don't show in any of the browsers I've tried. Am I missing anything?


import world_bank_data as wb

itables.init_notebook_mode(all_interactive=True)

df = wb.get_countries()
df```
mwouts commented 2 years ago

Hello @axel-loewe , thanks for reporting this.

We have seen something similar at https://github.com/mwouts/itables/issues/21, see also this extract of environment.yml: https://github.com/mwouts/itables/blob/ab39dae769d2165ef5a837e8d2ca74a24ab969ef/environment.yml#L9-L11

Can you quote the version of nbconvert that you use? Does it work better with nbconvert==5.5? Thanks

axel-loewe commented 2 years ago

Thanks, that solved it!

mwouts commented 2 years ago

Ok great thanks for the confirmation! I'll see if I can find a better solution, and if not I'll add this to the documentation.