Is there a way that I can create a package that loads a Streamlit interface?
For example:
import app
app.foo()
Where app contains the code base for a streamlit application (I was hoping to make it as a callable package).
Is there a way that I can create a package that loads a Streamlit interface?
For example:
import app
app.foo()
Where app contains the code base for a streamlit application (I was hoping to make it as a callable package).
Hi @Shawn_D_Souza -
What’s the use case for doing this? Meaning, if the user already has Python installed (because they are using this package), why not have them run streamlit run file.py
?
Best,
Randy
I designed a no-code application for EDA and ML.
I wanted to build a package that works similar to pandas profiling to_file(“output.html”)
So that when I call do_eda(data) it loads the output on the browser as a Streamlit interface.
I see. I suspect you could use a subprocess to call Streamlit, but that feels like it could cause some weird issues. Meaning, the Python process would be managing a separate Python process, and I’m not sure if there are issues around that with Streamlit.
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.
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.
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.
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.