Calmcode - ngrok: the problem

The Problem

1 2 3 4 5

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 ( has these contents:

import streamlit as st
import numpy as np
import matplotlib.pylab as plt

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[1]):
    plt.plot(arr[:, i])


If you're interested in learning how this app works, you may appreciate the small course we've made on streamlit. To run streamlit locally it much first be installed and then you can run it.

pip install streamlit
streamlit run