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

Widgets not rendered when notebook is output/printed, garbled when widget state is saved #1562

Closed
rabejens opened this issue Apr 30, 2021 · 2 comments · Fixed by #1665
Closed

Comments

@rabejens
Copy link

I am running Jupyter with Jupyterlab and Sparkmagic to use Apache Spark through Livy. When I output results as a table or plot, the widgets are either not shown at all or the output is garbled.

If "Save widget state automatically" is enabled, the output is garbled, if not, it is missing

Run the attached notebook and open the print preview

Widget.ipynb.txt

Without saving widget state
Without saving widget state

With saving widget state
With saving widget state

Nbconvert version: 6.0.7

@maartenbreddels
Copy link
Collaborator

cc @SylvainCorlay
This is similar to voila-dashboards/voila#804 where we could simply not embed the json, but the solution should be to base64 encode it to avoid the HTML inside the json to be interpreted by the browser I think.

@maartenbreddels
Copy link
Collaborator

Related #802

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

Successfully merging a pull request may close this issue.

2 participants