Skip to main content

Version/Environment:

This applies to all versions of Domino.

Issue:

Gradio’s “Hello, World” demo fails to render in a Jupyter workspace and/or a browser window.

Root Cause:

There is a bug in the Gradio package which strips the trailing slash from URLs being loaded in-line, i.e. in the notebook.

Resolution:

Download the attached example Jupyter notebook to get started using Gradio in Domino. This runs on the current Domino Standard Environment (DSE) and DSE with GPU images. The app renders both in the Jupyter workspace and in a browser tab. In this line, replace the URL demo2.dominodatalab.com with your deployment’s URL (without https://):
  • host = os.environ.get(‘GRADIO_PROXY_HOST’) or “demo2.dominodatalab.com”
Please note that you’ll need access to jupyter-server-proxy >=3.2.2 and access to the Pypi repositories to download the Gradio packages.
  • To check the version in a Jupyter Terminal, run pip list | grep -i jupyter-server-proxy
Please note “show_api=False” is not supported in newer version of Gradio 6.x, you will need to remove it from launch,

References/Internal Records:

  • PTE-666
Last modified on October 12, 2026