Can't get ipywidgets working in a Jupyter notebook deployed on RStudio Connect

I deployed one of the examples from the ipywidgets documentation on my company's RStudio Connect instance. While I can move sliders and press buttons, none of the output is changing in response to changing one of the widgets. However, when I run the Jupyter notebook locally, the widgets work just fine.

How can I get ipywidgets in Jupyter notebooks working on RStudio Connect?

For reference, the local environment is running Ubuntu 18.04.6, Python 3.8.12, IPython 7.28.0, and ipywidgets 7.6.5. I am not sure about the server configuration, but it has had no issues hosting and running Shiny apps.