-
Notifications
You must be signed in to change notification settings - Fork 505
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
passing arguments to Voila app #517
Comments
Thanks @gunstonej. Would these arguments be consumed in a notebook? That sounds similar to the prelaunch hook: #218 |
I would very much need the same: pass on any number of program specific arguments to the notebook. Maybe anything passed after the notebook filename could get ignored? Example: Or, even better IMO, use a special argument separate like "--" to indicate that everything after that should get ignored: The second solution would make it easier to then parse the arguments within the notebook: one could ignore all elements in sys.argv up to and including "--" and then pass the rest to something like argparse. |
Sadly it seems there has not been any progress on this. So far the only workaround is to use environment variables ... |
Hi @johann-petrak - I agree that a CLI style interface would be great -
|
I'm using Voila to build python apps internally for an engineering company.
It's awesome.
I'd like to know whether it is possible to pass arguments to a Voila App when it is initiated.
e.g.
voila app.ipynb inputdata.json
this would be a very useful feature as it would make it easy to interface a Voila App with other workflows.
The text was updated successfully, but these errors were encountered: