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.

Progressively update docs references

See original GitHub issue

Add links to related functions in docstrings (applies to both links to internal and external functions), also add See also sections where relevant. Follow up of #1184. Places where references are of particular importance are: kwargs description to ease consulting of the documentation relevant to the kwargs so users know what keys are supported; and functions that take as input the output of a previous one

For details on how to do so, read the hyperlinks section in the developer guide. Moreover, the docstring of hdi and plot_hdi are good examples.

External references

An example of external reference can be found at plot_hdi page (see how rendered page links to scipy, matplotlib and bokeh functions from this source).

Internal references

The same plot_hdi also has an internal reference to hdi. The links are the same as in the previous section.

See also section

An example of See also section can be found at compare page

Status

This should help tracking what has been done. We could open an issue for every single function but that would probably get out of hand fast and make keeping track harder. Functions where work is halfway will be listed below without checkmark, updated functions will be checked and all missing functions are free and unassigned.

If you are interested in working on this, check the list to see what functions are available and comment which (1-4 functions per PR seem like a reasonable number, don’t try to work on too many at the same time) would you like to tackle.

  • plot_hdi: nearly finished, only external references for backend_kwargs are missing.
  • hdi (maybe a reference would further improve the docstring)
  • InferenceData.sel/InferenceData.isel: should have all references to xr.Dataset.sel/isel with hyperlink and also a see also section linking them to each other and to the respective xarray versions
  • Other InferenceData methods: intersphinx is present and linking to relevant places, a see also section would be appreciated. This one is not begginer friendly as it should be added programatically by _extend_... cc @percygautam
  • compare: extend see also section, maybe use references too? plot_separation is a good example on how to format references in docstrings
  • all other functions…
    • plot_xyz
    • stats xyz
    • diagnostics xyz

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
fairkacommented, Jun 4, 2020

Hey can I have this project?

1reaction
HayesJohnDcommented, Sep 23, 2020

Ok, I will start on the InferenceData.sel/InferenceData.isel part.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add or update a bibliography and citations - Google Support
Change the citation format and update a bibliography · Open your document in Docs. · Click Tools · In the Citations section, click...
Read more >
More easily add citations in Google Docs with new search and ...
Citations are an important aspect of many types of documents. This new search and automatic addition function makes it quicker and easier to...
Read more >
Updating references in google doc while collaborating - Support
I'm having trouble updating references in google docs. Some references that were initially in press are now published and I wish to update...
Read more >
Updating Content - Sanity.io
Reference docs. Our reference documentation has more details on manipulation content via our APIs. HTTP API · Client libraries · Command Line Interface...
Read more >
Smart Cross References for Google Docs - Sealion Software
From the Add-Ons menu, select “Smart References” > “Update references”, or click on the “Update references” button on the sidebar. All the Smart...
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