Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion to HTML shows only header line #32

Closed
axel-loewe opened this issue Dec 22, 2021 · 3 comments
Closed

Conversion to HTML shows only header line #32

axel-loewe opened this issue Dec 22, 2021 · 3 comments

Comments

@axel-loewe
Copy link

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
Copy link
Owner

mwouts commented Dec 22, 2021

Hello @axel-loewe , thanks for reporting this.

We have seen something similar at #21, see also this extract of environment.yml:

itables/environment.yml

Lines 9 to 11 in ab39dae

# we require nbconvert<6.0 because the html export fails with nbconvert==6.0.7
# Cf. https://github.com/mwouts/itables/issues/21
- nbconvert<6.0

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

@axel-loewe
Copy link
Author

Thanks, that solved it!

@mwouts
Copy link
Owner

mwouts commented Dec 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants