Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Image does not show up when using the canvas with st_pages #119

Open
janezlapajne opened this issue May 31, 2023 · 0 comments
Open

Image does not show up when using the canvas with st_pages #119

janezlapajne opened this issue May 31, 2023 · 0 comments

Comments

@janezlapajne
Copy link

Hello,

when I run the provided app everything works fine. When I try basic example and upload an image it shows up. However, when I call the same script by using st_pages only black background is displayed on the location where the image should be shown.

To recreate the issue, I have an app.py and app_draw.py script. The first creates pages and the second calls the provided canvas example. As stated, this example does work in the sense that the canvas example application runs, but only black background is displayed on the location, where instead the image should be shown. Is there any workaround for it?

# this is app.py script

import streamlit as st
from st_pages import Page, Section, show_pages, add_page_title

show_pages(
    [
        Page("app.py", "Home", "🏠"),
        Page("app_draw.py", "Draw", "✨"),
    ]
)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant