How to run Streamlit app from Google Colab

preview_player
Показать описание
Here are the various steps to take when running a streamlit app on colab

!pip install streamlit to install streamlit

Step 2: Get an Authentication Token from ngrok

Step 3: Download and save ngrok in sandbox

Step 4: Unzip ngrok

get_ipython().system_raw('./ngrok http 8501 &')

#machinelearning #webdevelopment #python
Рекомендации по теме
Комментарии
Автор

How can we run streamlit in Jupyter Notebook?

DatatechAnalytics
Автор

Hello, Thank you so much for this. Please, how do i use the Authtoken code it seems i was taken back to the Ngrok platform to finish up the process when i wanted to view the streamlit page.

udodirimnwosu
Автор

I am stuck at step 5 and encountering error like this - can you please help? 
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

swethaneelarchives
Автор

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False. i am getting this error in the end step

alishaparveen
Автор

Hey mate, I am getting errrot at step 5. Could you help me with that ?

thelionheart