How can I insert an image at the upper left corner of my app?
My intention is to provide a name and the logo of my project above the side bar, likewise the Streamlit Documentation web page (https://docs.streamlit.io/).
Here’s one option: Put logo and title above/on top of page navigation in sidebar of multipage app - #6 by blackary
Thanks for your help!
Unfortunately, I’m not able to use a file saved in my computer. The code runs with no error but the image doesn’t appear.
Is the image located in the same folder as your app (streamlit_app.py, or whatever you called it)?
If so, just putting the name of the file should work fine (e.g. my_img.jpg
). Otherwise, you will need to put the path of the file (e.g. my_folder/my_img.jpg
)
Another option is to host the image on a website somewhere (e.g. imgur) and use the url of the image.
Hi, I tried to put the file name but the image does not appear. Unlike your example, the space remains empty.
You can see how it looks in the attached figure.