Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue using a local path with st.image on windows. #8092

Merged
merged 11 commits into from Feb 6, 2024

Conversation

LukasMasuch
Copy link
Collaborator

@LukasMasuch LukasMasuch commented Feb 6, 2024

Describe your changes

This PR fixes an issue with using image files via a local path on Windows (#7271). This also unifies all URL checks in the Streamlit server with a Python native implementation and cuts out the validators dependency.

GitHub Issue Link (if applicable)

Testing Plan

  • Updated tests

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@LukasMasuch LukasMasuch marked this pull request as ready for review February 6, 2024 15:00
lib/streamlit/url_util.py Fixed Show fixed Hide fixed
@LukasMasuch LukasMasuch merged commit 60d0ee6 into develop Feb 6, 2024
41 checks passed
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
)

## Describe your changes

This PR fixes an issue with using image files via a local path on
Windows (streamlit#7271). This also
unifies all URL checks in the Streamlit server with a Python native
implementation and cuts out the `validators` dependency.

## GitHub Issue Link (if applicable)

- Closes streamlit#7271

## Testing Plan

- Updated tests

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

st.image() doesn't work with absolute local file-paths on Windows
2 participants