Feature add jsonargparse support
See original GitHub issueWhen using the LightningCLI
feature that uses jsonargparse
the parameters are not captured automatically. I have attached a file with the code to reproduce (discussed with @bmartinn).
lightning_cli.zip
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
jsonargparse — jsonargparse documentation
Features . Great support of type hints for automatic creation of parsers and minimal boilerplate command line interfaces. Non-intrusive/decoupled parsing ...
Read more >jsonargparse - PyPI
Features. Great support of type hints for automatic creation of parsers and minimal boilerplate command line interfaces. Non-intrusive/decoupled parsing ...
Read more >Compositional Configuration in Python with jsonargparse
Imagine we add a parameter to function_with_less_params(). Now we have to change all of our function calls between the initial setting of ...
Read more >Dynamically Add Arguments to Argparse | Python Patterns
git add --helpSYNOPSISgit add [--verbose | -v] [--dry-run | -n] [--force | -f] ... func=<function train at 0x000001F9433493A0>.
Read more >Using Argparse and Json together - python - Stack Overflow
The argparse values could be added with: ... in json file') parser.add_argument('--load_json', help='Load settings from file in json format.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@eugen-ajechiloae-clearml certainly. Feel free to tag me if you want me to review.
Hey @thepycoder!
🙏 👍
Well, it depends - if you think you can get a clean implementation that will be much simpler, we won’t object 🙂 - but I think the reason the argparse binding looks much more complex is because it is - there are much more things to handle and edge-cases (and bugs) that were addressed - personally I would start by trying to figure out the similarities and differences, to get a better understanding of what can be reused and/or extended.
Sure 🙂 - we’ll be super happy to help, explain and guide. You’re also welcome to ping us in the Slack clearml-dev channel (for quicker answers to simple questions - I still thing larger discussions are better off done here, for reference-sake)