Ok, the catchy title is just to get people thinking creatively about this post. I did not build a streamlit app for interactive documentation… But I want to share a scenario where streamlit is proving useful as a supplement to Python package documentation.
As a maintainer of an open-source repository, kneed, users frequently ask me questions about which parameters they should use to identify the knee-point in their data. To answer these questions, I need to:
request their data (if they didn’t provide it)
plot their data with the desired knee-point
email it back to them with an explanation of the parameters
With streamlit and streamlit share, I built an interactive app that allows users to input their data and explore the parameter space in real-time. Of course, I included links to the app in kneed’s README and documentation, so users should be directed to the app before emailing me directly.
How many other repos could benefit from a streamlit implementation like this? I imagine most would, but word2vec and doc2vec come to mind. The difficult step for some projects is: creating a visual that generates a mental connection for the user between the parameter and the outcome.
I’m curious to hear people’s thoughts about efforts in making documentation more interactive. This is a new concept to me, but one I’d like to read more about.
I think this is one of the very use cases where Streamlit absolutely shines, interactively showing how a parameter changes the outcome.
Just 2 days ago I built an app to study how changing parameters in aitextgen modified the nature of generated text (also I know the author has an issue on this).
I guess my years of teaching are in play there, students/users tend to remember and assimilate faster what they can play/interact with. I think a lot of Python librairies would benefit from a small explanatory Streamlit app.
So, if you can build and share Streamlit apps of any Python package that can be a little difficult to understand at first glance, I think that would help a lot of Python users
It’s so interesting that you should bring this up, actually there are a few of us right now (@AustinC@randyzwitch) that are working on something very similar to this idea! I don’t want to ruin any surprises, but we are hoping to have something ready to show the community before the end of the year!
Hi @andfanilo,
Nice implementation with the aitextgen app! It’s definitely one of the libraries that benefit from this idea. Thanks for editing the link .
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.