question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature add jsonargparse support

See original GitHub issue

When 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:open
  • Created 2 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mauvilsacommented, Mar 22, 2022

@eugen-ajechiloae-clearml certainly. Feel free to tag me if you want me to review.

1reaction
jkhenningcommented, Dec 8, 2021

Hey @thepycoder!

Hi, I would like to try and take this up 😃

🙏 👍

Since jsonargparse is so similar to argparse, should I try and add support for it to the existing argparse bind or create a new, specific bind for it just like what was done for click?Since jsonargparse is so similar to argparse, should I try and add support for it to the existing argparse bind or create a new, specific bind for it just like what was done for click?

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.

Also the code in argparse is barely commented, so someone to guide the way just a little would be much appreciated! 😃

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found