### Bug description

With Quarto 1.2.108 on macOS 12.5.1 (Intel):

1. Clone this repo: https://github.com/seeM/test-jupyter-widgets
2. Run `quarto render`

    You'll see the following warning here. I'm not sure if its related:

    ```
    WARNING: Malformed Jupyter Output Display Data found:
    WARNING: {"model_id":"7fc2753d918e4db8a2b5d774ece32c7b","version_major":2,"version_minor":0}
    ```
4. Open `_site/index.html`
5. The `ipywidgets.IntSlider` widget will not be rendered, and the browser console will have error `Uncaught (in promise) Error: View state has errors: [object Object]` in `embed-amd.js`

---

If you make the following change to the rendered `_site/index.html`, the widget will render correctly (the `model_id` may differ in your `index.html`):

```diff
<script type="application/vnd.jupyter.widget-view+json">
-[{"model_id":"7fc2753d918e4db8a2b5d774ece32c7b","version_major":2,"version_minor":0}]
+{"model_id":"7fc2753d918e4db8a2b5d774ece32c7b","version_major":2,"version_minor":0}
</script>
```

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-09-15T01:18:45Z
seeM
bug
v1.2
closed
Embedded `ipywidgets` are not rendered
https://github.com/quarto-dev/quarto-cli/issues/2445