You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem, specifically, is that pyvista is emitting a widget state that includes the specific string </script>. We are following the recommended approach here: https://ipywidgets.readthedocs.io/en/7.x/embedding.html which is to create a script tag and embed the JSON text.
We do that. Unfortunately, this widget state cannot have the </script> string, because that causes the outer <script type="application/vnd.jupyter.widget-state+json"> to close.
In my original comment, I wrote:
If ipywidgets allows us to emit this JSON in an escaped way so that it can have the string </script> in it, then we can fix the bug on our side (but I can't see a way to do that in the documentation). But unfortunately this looks like something we can't fix on our side.
But I think I know a way around it. Here's a funny way to create a script tag with the string </script> inside it:
#7968 (reply in thread)
The problem, specifically, is that pyvista is emitting a widget state that includes the specific string </script>. We are following the recommended approach here: https://ipywidgets.readthedocs.io/en/7.x/embedding.html which is to create a script tag and embed the JSON text.
We do that. Unfortunately, this widget state cannot have the
</script>
string, because that causes the outer<script type="application/vnd.jupyter.widget-state+json">
to close.In my original comment, I wrote:
But I think I know a way around it. Here's a funny way to create a script tag with the string
</script>
inside it:So we can adapt this to create a script tag that self-expands into a JSON script tag that safely contains the string
</script>
.The text was updated successfully, but these errors were encountered: