-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
display call for loaded component should show better view of component info #947
Comments
I'm thinking of this. I'm not sure IPython would allow showing more information for a function object. It should be showing the component.yaml source (and it sometimes does that), but that's flaky. I was thinking about returning a callable ComponentSpec object instead of a function. But I'm afraid it would be confusing to people (they might not know that it's callable). I'd still like to try and do that. |
It has always shown this information. Can you show a screenshot where it does not? |
Here is the sample output:
It doesn't show component description, parameter description, parameter type, output information. |
Try this in Jupyter:
then type
|
What does |
Well, that component does not specify types: https://github.com/kubeflow/pipelines/blob/master/components/gcp/dataproc/submit_pig_job/component.yaml |
It shows component description in the doc string. Maybe we should also include inputs and outputs description in the docstring. |
Component description is used to for the docstring. But function's Docstrings are not shown that way
Yes, it might be a good idea to include those in the docstring. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it. |
This is a use case in notebook, when user use ipython display API to display a loaded component. Currently, it only displays a normal python function signature. It's better to show more metadata including:
name, description, type information.
The text was updated successfully, but these errors were encountered: