Free Streamlit Dev Environment through Colaboratory

Hello everyone! I was told to post this here because some might find it interesting. Colaboratory is a free-to-use Jupyter Notebook environment and hosted run-time provided by Google. While it is fairly restrictive out of the box in terms of port access I found a clever way to develop and run Streamlit apps using ngrok as a tunnel to the Streamlit TCP port. Enjoy!

7 Likes

Wait you mean Streamlit on free Colab TPU ?

:money_mouth_face: Definitely need to test that, huge thanks for the tip !

NB : oh and welcome to the forums @tuffacton :slight_smile:

1 Like

i try to run it but got this error message in ngrox Failed to complete tunnel connection The error encountered was: connect: connection refused**"

Hi Sinta, are you modifying any code? I just ran a fresh notebook from the gist and it seems to be working for me. Are you willing to share your notebook?

1 Like

hello i get the problems like here when i click my Locall url:

This site can’t be reached

172.28.0.2 took too long to respond.

Try:

ERR_CONNECTION_TIMED_OUT

I receive the same kind of error

Read the instructions in the notebook clearly. Do not use the IPs in the last cell, only use the url provided by ngrok. Colaboratory will not expose arbitrary ports.