Skip to content
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

possible to print $CONFIG in hydra help with interpolation resolved? #1482

Closed
hwijeen opened this issue Mar 19, 2021 · 6 comments · Fixed by #1655
Closed

possible to print $CONFIG in hydra help with interpolation resolved? #1482

hwijeen opened this issue Mar 19, 2021 · 6 comments · Fixed by #1655
Assignees
Labels
wishlist Low priority feature requests

Comments

@hwijeen
Copy link

hwijeen commented Mar 19, 2021

Hi, thank you for the brilliant library once again!

I am using --help functionality following the docs, and wondering if the values printed with $CONFIG can be 'resolved.
For example, what I get right now is

...
load_dataset:
  _target_: datasets.load_dataset
  path: ${hydra:runtime.cwd}/loading_script.py
...

Is there a way to get hydra:runtime.cwd resolved to an actual path?

Thanks!

p.s. Is there a functional equivalence of python argparse's variable-wise help?

parser.add_argument('foo', help='can hydra have something like this to explain each variable?')
@jieru-hu
Copy link
Contributor

Hi @hwijeen!

Is there a way to get hydra:runtime.cwd resolved to an actual path?

No. as of now, when you use the --help flag, only the values in the hydra/help config group will be resolved in the message.

p.s. Is there a functional equivalence of python argparse's variable-wise help?

we have an open issue for this :)
#633

@jieru-hu
Copy link
Contributor

(from offline discussions with omry)

We will consider adding support for a resolved config in help in future Hydra releases.

@jieru-hu jieru-hu added the wishlist Low priority feature requests label Mar 19, 2021
@omry
Copy link
Collaborator

omry commented Jun 4, 2021

@Jasha10, can you do this? this is related to your --resolve flag for --cfg.
Should be pretty easy to add this too.

@Jasha10
Copy link
Collaborator

Jasha10 commented Jun 4, 2021

Yes, I'll take it.

@Jasha10 Jasha10 self-assigned this Jun 4, 2021
@Jasha10
Copy link
Collaborator

Jasha10 commented Jun 4, 2021

Should the --resolve flag control whether this feature is enabled?

@omry
Copy link
Collaborator

omry commented Jun 4, 2021

That's the idea, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishlist Low priority feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants