Create link to open file from local system

Hi All,

In jupyter notebook

%%html
href="…/files/Downloads/jaipur.pdf#page=10" target="_blank">Link to a pdf
creates a link pointing towards pdf file and when clicked opens pdf in new tab.
How I can create a html link to open file using streamlit ?

2 Likes

Hi @kamal_kumawat

Have you checked this hack from @ash2shukla?

Thanks
Charly

2 Likes

Hm this seems to download the PDF, but is there a way for the user to just open it in a new tab without downloading?

1 Like

What this ever solved? I have a similar use case where I’d like the link on my Streamlit page to open a local file (like a pdf) for further inspection outside of Streamlit.

3 Likes

I’d like a user to be able to click a link and open Windows Explorer to the folder provided in the link. Is this possible?

3 Likes

I’m also looking for a solution. Is there a way to create a link to a local folder in streamlit?

3 Likes

Also looking for a way to open a specific folder locally on windows using streamlit.

1 Like