Open
Description
The Colab folks have upstreamed our iframe creation logic with a helper
modeled after ours:
It’s available as:
from google.colab import output
output.serve_kernel_port_as_iframe(port)
…and we already only render to Colab if google.colab
is present.
May as well use it, simplifying our code a bit?