I’m a beginner, but am having trouble accessing the terminal in Streamlit. I want to edit the policy.xml file of a package that’s installed on Streamlit. How might I do this if it’s possible?
Apologies if this question seems simple but I’ve spent more than a day trying to figure this out.
I don’t think it is possible to get terminal root access with a deployed app on Community Cloud. However, you might want to fork a copy of the package (if available on GitHub) then edit the file. Afterwards you can install the custom package via requirements.txt by following instructions from the Knowledge base article
Thanks so much for your reply. This seems like a great idea. I did what you’d suggested – I created a fork of the repository, changed the file, and then tried installing like the article you’d linked had said. However I got this error:
ERROR: git+https://github.com/barteshwar/ImageMagick (from -r /app/headerfootereditor2/requirements.txt (line 3)) does not appear to be a Python project: neither ‘setup.py’ nor ‘pyproject.toml’ found.
I’ll give you some background. The “package” I’m trying to install is called ImageMagick, which is a dependency for the moviepy python package. ImageMagick isn’t a python package, and thus far I’d been putting it in packages.txt instead of requirements.txt. Would you know how I could get my forked version of ImageMagick to work? I tried adding the same command in packages.txt but that didn’t seem to work.
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.