https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Adwitiya

10/07/2022, 1:21 PM
How can I register my code( written using flytekit ) in flyte sandbox and run it from remote (executing wf from a python code)
s

Samhita Alla

10/07/2022, 2:15 PM
@Adwitiya, 1. You can run your code using
pyflyte run
or `pyflyte register`: please refer to the getting started guide; for
pyflyte register
, you can run
pyflyte register <package-or-module>
2. If you want to register your code programmatically, refer to FlyteRemote
a

Adwitiya

10/07/2022, 2:53 PM
is
pyflyte run
meant to run on single files generally?
s

Shivay Lamba

10/07/2022, 4:28 PM
Hi @Adwitiya
pyflyte run
is used for handing single Python files only, whereas you can use pyflyte register to parse entire repos of Flyte code (this uses fast-register) or you can also use pyflyte package for parsing entire repos.
a

Adwitiya

10/07/2022, 4:29 PM
Perfect will, work on this tomorrow and reach back to you.
s

Shivay Lamba

10/07/2022, 4:30 PM
Sure
a

Adwitiya

10/07/2022, 4:30 PM
🌻🌻
k

Ketan (kumare3)

10/08/2022, 2:58 PM
Also I am working on all of this become programmatic
25 Views