Usually code runs in your notebook because a cell is being run. What if instead it is triggered by a user interface element? It might be a better discovery tool or a better method for rapid prototyping. This is what the ipywidgets library tries to enable.
You can check the widget list here.
If you want to run the same code as a webapp without the code-cells you can use voila.
pip install voila voila widgets.ipynb
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider signing up for the newsletter.