Skip to content

How to run streamlit apps in pants? #18353

Answered by kaos
rhuanbarreto asked this question in Q&A
Discussion options

You must be logged in to vote

stripped down answer of https://pantsbuild.slack.com/archives/C046T6T9U/p1677251089751089?thread_ts=1677247987.213439&cid=C046T6T9U

Using Pants <2.16.0.dev5

# some/BUILD
pex_binary(name="bin", script="streamlit", dependencies=[<streamlit app>])
$ pants run some:bin -- run <streamlit app>

Using Pants >=2.16.0.dev5

# some/BUILD
pex_binary(name="bin", script="streamlit", args=["run", <streamlit app>], dependencies=[<streamlit app>])
$ pants run some:bin

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rhuanbarreto
Comment options

@rhuanbarreto
Comment options

@kaos
Comment options

kaos Feb 27, 2023
Collaborator

Answer selected by rhuanbarreto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants