-
Notifications
You must be signed in to change notification settings - Fork 11
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
📖 Library Component Descriptions Update #180
Conversation
The line in the |
@MFA-X-AI Error in fetching xircuits components: Perhaps its |
Yeah no worries, you can do it tomorrow in work hours.
Yep, thanks for pointing that out. I shamelessly copy pasted from the previous PR, didn't update it yet. 😄 |
Oh, I wasn't expected you to review the general components as well since they're the hardbaked ones. Here's the docs about them: Technically they shouldn't have the information panel... but I guess if we can supply the information, that wouldn't be too bad as well. Which would be easier @AdrySky ?
This is a good suggestion but will take some time to implement. We definitely can look into improving the component tray widget in the next version, including the ability to pip install component libraries from tray. 😄 |
In regards to general components, perhaps we can point them to the doc like this:
This is because most of the users will just install and use stuff without even looking at the docs until they hit a roadblock. Hence, the component description itself will point them to the right place just about when they are confused what those general components do. 😄 |
@MFA-X-AI Canvas zooms in and out when user is scrolling the component description. Should I file this as an Issue? |
@yuenherny it is a known inconvenience which we haven't prioritized working on yet. You may create an issue if you'd like. |
Adding the descriptions is fine I guess. Might not be as straight forward to implement it.
Both are doable. But might take a while. Just create the tasks and if possible an issue as well. When we have another new user, then you realized there's still a lot of works to be done T.T |
I noticed that using markdown heading level 3 (###) for the reference, inPort, and outPort doesn't look great. As those headings are way bigger than the heading used for the component name and description. Choosing a heading level similar/lower to the component name and description looks better IMO. |
@yusufraji thanks for pointing that out! Now that I look at it, I guess h5 would fit better. Let me fix that. |
Comments on Xircuits Components - Pytorch Category
That's all for Pytorch category. Skipping Spark category as I think its easier to finish off Template and Utils before 6pm. |
Comments on Xircuits Components - Template Category
Comments on Xircuits Components - Utils Category
That's all for Template and Utils category. Will continue on with Spark category after this. |
Comments on Xircuits Components - Spark Category
That's all for Spark category. Lemme know if you need help with rectifying these comments. Overall great work with the docstrings! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completed review. Overall, good work with the docstrings.
Please do take a look at the comment thread in PR for details.
Once that done, should be good to merge.
Thanks for the through review, I've updated the components based on your feedback. Some of the stuff I've noted:
This was actually much harder than I thought. 😄 I've gotten the reference on how to load the libsvm from this example but lo and behold, even the official docs only provide the description as "all other string options". It would likely refer to this, however as we don't have a proper use case for it currently, I'm removing that port altogether. One of the thing that I'm on the fence about is if we would want to modify our ports to be like how the spark docs does it:
It nicely mentions whether ports are optional or not and also the expected in type. For that reason, I'm not deleting the branch yet, just in case we'd like to update it to this format. |
Description
With #171, we can now have rich component descriptions. This PR adds descriptions to all ~50 of them.
In general, this is the way it's formatted:
References
#171
Pull Request Type
Type of Change
Tests
This would be a proof read PR. You'll need to check on all component descriptions and see if they make sense / formatted correctly. In general the steps would be:
xircuits-components --branch fahreza/update-desc
Tested on?
Notes
It's a tad cumbersome task to do, good luck. 😄