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
Mentioning Parameters in the docs #315
Comments
True. It would be great to have them link to their definition on the Parameterized object, but that seems like a lot of work. |
I'm not sure I understand what you mean. What I was referring to were cases such as "with pn.bind you can bind a function to widgets or parameters". |
Oh, you mean the word "parameter", not a specific parameter like |
Yes it is exactly what I meant - the word "parameter" - sorry I wasn't clear enough in the original post. Linking to the Parameters guide of Param would be an option, except that it is a tad long and what would work best in sort of case would be a glossary-like definition, short and to the point. Another option would be to link to the API reference of So I'd say that the steps to fix the issue include:
|
I vote for linking to a relevant page on the param site. I think making them links also suffices as a styling modification. Draft text for a plain language glossary-like definition: "Parameter is a special class attribute that allows for explicitly declaring behavior such as type, range, doc string, and default value." |
Sounds good to me! Slight modification: "A Parameter is a special class attribute that allows for explicitly declaring behavior such as type, range, doc string, and default value; see param.holoviz.org for details." |
Just noting that when Parameters are used in the context of hvPlot/HoloViews, what is also important is that Parameters can be watched. I.e. users would define a Parameterized |
Across the HoloViz documentation, be it in Panel, HoloViews or even hvPlot, there are often mentions of parameters which we understand as being Param Parameters (e.g.
widget.param.value
). parameter is such a general word that this practice is confusing in itself, even more so when users aren't aware of Param, which is very likely for hvPlot for instance.I believe there should be a way for readers to clearly identify these are not normal parameters, e.g. parameters they find in a function signature, but Param Parameters. And the thing that allows to identify them as such should be used everywhere it's required, and in a similar way across the whole documentation. Options include for instance:
*Parameter*
instead ofparameter
)The text was updated successfully, but these errors were encountered: