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

Run app with @stlite/mountable without explicit file content embeddings #845

Open
whitphx opened this issue Apr 3, 2024 · 0 comments
Open

Comments

@whitphx
Copy link
Owner

whitphx commented Apr 3, 2024

Only with code like this, stlite should load app.py and run it.

stlite.mount({
  entrypointUrl: "./app.py",
  requirements: [...]
});

Even if the app.py imports other module e.g. from .foo import bar, stlite hooks the import and tries to load foo.py via HTTP access.

This makes it possible to serve an existing Streamlit project as a stlite app just by adding a single templated HTML file.

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

No branches or pull requests

1 participant