question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blank plot in html using nbconvert (basic template)

See original GitHub issue

Hi everyone,

I know that to convert a jupyter notebook (.ipynb) to an html I can use this command :

jupyter nbconvert --to html --template full myNotebook.ipynb

In this case I can successfully see my plot in the resulting html (myNotebook_full.html in myNotebook.zip).

However, when I am trying to convert it using the basic template, there is a blank space instead of the plot

(myNotebook_basic.html in myNotebook.zip).

jupyter nbconvert --to html --template basic myNotebook.ipynb

missing

Do you have an idea why ?

Thanks all for your work and support !

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
astrojuanlucommented, Oct 24, 2018

@jonmmease Thanks! Progress is slow but I think it’s been acknowledged that it’s an issue on the RTD side - let’s hope someone gives it the final push.

1reaction
ltetrelcommented, Jul 6, 2018

I finally managed to resolve my issue. I just needed to include the following scripts at the top of my .html template file :

<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Customizing nbconvert — nbconvert 5.6.0 documentation
These templates can be fully customized, allowing you to use nbconvert to create notebooks in different formats with different styles as well.
Read more >
Creating Custom Templates for nbconvert - Read the Docs
Nbconvert templates are directories containing resources for nbconvert template exporters such as jinja templates and associated assets. They are installed in ...
Read more >
Customizing nbconvert — nbconvert 4.2.0 documentation
These templates can be fully customized, allowing you to use nbconvert to create notebooks in different formats with different styles as well.
Read more >
Using nbconvert as a library - Read the Docs
We use the `basic` template for now; we'll get into more details # later ... /10/07/xkcd-style-plots-in-matplotlib/>`__ by Jake Vanderplas. .. raw:: html <!...
Read more >
7.1.0 PDF - nbconvert Documentation
jupyter nbconvert --to FORMAT notebook.ipynb ... --template basic. Base HTML, rendering with minimal structure and styles. – --embed-images.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found