Sometimes you need to give somebody a demo and this person cannot sit next to you. This can be a stakeholder or a fellow developer. In these situations there's a great tool you can use to create a tunnel to your laptop. It's called ngrok.
In this video we explain the problem that we're trying to solve.
The streamlit app that we're running locally (
demo.py) has these contents:
import streamlit as st import numpy as np import matplotlib.pylab as plt st.title('Simulation[tm]') st.write("Here is our super important simulation.") x = st.sidebar.slider('Slope', min_value=0.01, max_value=0.10, step=0.01) y = st.sidebar.slider('Noise', min_value=0.01, max_value=0.10, step=0.01) arr = np.cumprod(1 + np.random.normal(x, y, (100, 10)), axis=0) for i in range(arr.shape): plt.plot(arr[:, i]) st.pyplot()
If you're interested in learning how this app works, you may appreciate the small course we've made over here. To run streamlit locally it much first be installed and then you can run it.
pip install streamlit streamlit run demo.py
Feedback? See an issue? Feel free to mention it here.
If you want to be kept up to date, consider getting the newsletter.