Is there a general way to run Web Applications on Google Colab?

前端 未结 4 1758
小蘑菇
小蘑菇 2020-12-29 13:06

I would like to develop web apps in Google colab. The only issue is that you need a browser connected to local host to view the web app, but Google colab doesn\'t have a bro

4条回答
  •  萌比男神i
    2020-12-29 13:35

    Here is an example that illustrates starting a webserver and serving resources to a Colab output frame.

    https://colab.research.google.com/notebooks/snippets/advanced_outputs.ipynb#scrollTo=R8ZvCXC5A0wT

    Colab caches served outputs so that notebooks will render without reexecution. For live servers, users will need to reexecute the code to start the server. But, afterwards, Colab will proxy requests from the output frame that reference localhost to the Colab backend.

提交回复
热议问题