I’m trying to use Streamlit Cloud to share a small app with my colleagues.
This app behavior is to ask the user where their data is stored on their computer, and then to launch a command line to do some operations with an external software.
This software show through a windows terminal it’s progression while operating on datas (and that’s why I want to open a terminal).
For this example, let’s consider an easier command.
On my local Streamlit on Windows, I can use the command os.system(“start cmd /k echo HELLO”).
Then, a terminal popup appears with “HELLO”.
When I deploy my app on Streamlit Cloud, I do the same command but this occurs : sh: 1: start: not found
I understand that the command start don’t work like this with Streamlit cloud (as maybe windows is not in the cloud environnement ?)
Do you have any idea about how to deal with this ?
Thanks in advance for your time !
I’m not sure I understood your use case correctly.
However, I suspect that there is a misunderstanding here about how Streamlit works. Streamlit consists of a client component (webbrowser) and a server component (the Streamlit app). As long as the client and server are identical, Streamlit can access the client machine. But this is just a happy accident as long as you develop locally.
As soon as Streamlit is hosted, this doesn’t work anymore. All interaction between the client and the server must be done through the browser. All attempts to work around this are doomed to failure once Streamlit is hosted. Streamlit will not be able to execute shell commands on the client machine.
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.