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

SNOW-1569814: Support for Organizing Streamlit Apps in Subdirectories #1408

Closed
sfc-gh-jdemlow opened this issue Aug 1, 2024 · 2 comments
Closed

Comments

@sfc-gh-jdemlow
Copy link

Description

I'm working on a Streamlit application and want to keep the repository organized by placing the app and its associated files in an app/ directory rather than the root. While everything functions correctly when placed in the root, I'm struggling to make it work from a subdirectory. The main challenge seems to be with specifying the paths in the snowflake.yml file and ensuring that additional source files are correctly referenced and uploaded to the Snowflake stage.

For instance, I've tried setting main_file: app/streamlit_app.py and adding source files like app/utils.py to the additional_source_files section. However, this setup results in errors related to the file paths, particularly when using relative paths that attempt to navigate outside the intended structure.

For internal teams https://snowflake.slack.com/archives/C03E8TLQ7LP/p1719331501385529

I was asked to put in a feature request about a month ago please feel free to reach out to me

Context

I feel like this is just something that would be very nice to have in a streamlit development approach

@github-actions github-actions bot changed the title Support for Organizing Streamlit Apps in Subdirectories SNOW-1569814: Support for Organizing Streamlit Apps in Subdirectories Aug 1, 2024
@sfc-gh-turbaszek
Copy link
Collaborator

Upcoming Snowflake CLI 3.0 is going to support multiple Streamlits apps in a single project. You will be able to specify what files are necessary for each app. Having said that we will have to wait for next release.

@sfc-gh-turbaszek
Copy link
Collaborator

Done in #1394

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants