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

Interactive Plots Not Included in Jupyter Notebook Print or Download #3073

Open
boilednut opened this issue Jan 29, 2021 · 4 comments
Open

Comments

@boilednut
Copy link

I apologize if this isn't the proper forum for this issue. I have a notebook that includes several interactive matplotlib plots --generated using the ipywidgets interact decorator. Whenever I attempt to print or download the notebook (as PDF or HTML), none of the interactive plots are included. However, for PDF downloads, text like the following is included instead:

interactive(children=(FloatSlider(value=...

Using the 'Save Notebook Widget State' setting, I've been able to get the interactive plots to appear when the notebook is opened into a new kernel; but, even with this setting enabled, the plots still don't appear when the notebook is printed or downloaded.

@cladosphaero
Copy link

Hi @boilednut, I am having the same issue.

@MarkusKonk
Copy link

MarkusKonk commented Jan 11, 2023

@boilednut @cladosphaero
Strange that such a basic function doesn't work or doesn't exist....
Maybe this workaround helps you: https://stackoverflow.com/questions/35305607/jupyter-notebook-matplotlib-figures-missing-in-exported-pdf

@maartenbreddels
Copy link
Member

#3107 might be an interesting discussion.

But, I think that HTML rendering should work, and combined with the webpdf renderer of nbconvert, you should be able to get a pdf with the rendered widgets.

@JWock82
Copy link

JWock82 commented Nov 20, 2024

I'm having this problem too in late 2024. This issue has been open for some time. Any updates?

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

5 participants