papermill
papermill copied to clipboard
parameters object
perhaps it would be nice to provide an example where injected parameters are inside a dictionary or object:
# parameters
import argparse
args = argparse.Namespace()
args_dict = {}
args.a = 1
args_dict['b'] = 2
papermill ... -p args.a 1.618 -p "args_dict['b']" 3.14159
This would of course be useful for making transition between *.py
scripts (using e.g. argparse
or docopt
) and *.ipynb
notebooks (using papermill
) easier
You mean documenting something like papermill ... -y '{"args_dict": {"b": 3.14159}}'
?
yes
That sounds useful to have. Maybe a full section in the docs on equivalent patterns between argparse, (click?), and papermill for passing argument.
@rubelmusicwould8374 I deleted the adds you (hopefully unintentionally) injected into this thread. If you didn't know your account performed that action you may want to clean your computer / browser extensions :)