Skip to content

Instantly share code, notes, and snippets.

@arm2arm
Last active July 21, 2021 20:48
Show Gist options
  • Save arm2arm/4fee571ec0337f71ef6341a969b36507 to your computer and use it in GitHub Desktop.
Save arm2arm/4fee571ec0337f71ef6341a969b36507 to your computer and use it in GitHub Desktop.
Streamlit on cocalc

Install

conda create -y -n streamlit python=3.6
conda activate streamlit
pip install streamlit

Usage

in the x11 terminal:

streamlit hello 
 Welcome to Streamlit. Check out our demo in your browser.

  Local URL: http://localhost:8501
  Network URL: http://192.168.112.21:8501

  Ready to create your own Python apps super quickly?
  Just head over to https://docs.streamlit.io

  May you create awesome apps!

You should see firefox popping up with the demo page. Or you can go to the application URL directly: https://cocalc.com/PROJECT_ID/server/8501/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment