Skip to content

Improve docstring for dask.visualize #8640

Closed

Description

@pavithraes

The dask.visualize API docs mention that args need to be a "dask object", which isn't very clear to newcomers. It may be worth clarifying that we mean a Dask Collection here?

Ref: The Stack Overflow question which surfaced this misunderstanding.

Activity

  1. added
    documentation
    on Jan 31, 2022
  2. added
    good first issue
    on Feb 1, 2022
  3. soma2000-lang commented on Feb 1, 2022

    @soma2000-lang

    @jsignell I want to work on this please assign me this issue

  4. bryanwweber commented on Feb 1, 2022

    @bryanwweber
    Contributor

    @soma2000-lang Please feel free to submit a pull request, you do not need to be assigned this issue!

  5. Dranaxel commented on Feb 9, 2022

    @Dranaxel
    Contributor

    Hello, not sure to understand some details. The SO issue talks about args passed to dask.visualize and your answer shows you calling it as an attribute of a dask collection object.
    Is this some equivalent writing or do i miss something ?

  6. pavithraes commented on Feb 10, 2022

    @pavithraes
    MemberAuthor

    @Dranaxel Good catch! Yes, it's equivalent in most cases. I've also updated the answer on Stack Overflow. :)

  7. Dranaxel commented on Feb 11, 2022

    @Dranaxel
    Contributor

    I'm new to Dask so maybe I'm saying something huge but it seems the term dask collection is never really explained in the documentation. Even the link you provided doesn't explicitely mention it.

  8. pavithraes commented on Feb 11, 2022

    @pavithraes
    MemberAuthor

    @Dranaxel Thanks for the PR, and that's a good point! Collections are another term for user interfaces (they typically refer to DataFrame, Array, Bag, Delayed, and Futures). The diagram on that page mentions collections, but we sure can make this term clearer in the docs.

  9. Dranaxel commented on Feb 11, 2022

    @Dranaxel
    Contributor

    Glad to help ! So souldn't we make the doc talk about user interfaces rather than collections ? To keep the same language all allong.
    I saw my PR isn't valid bc of some formatting error, do you need me to fix this ?

  10. pavithraes commented on Feb 11, 2022

    @pavithraes
    MemberAuthor

    So souldn't we make the doc talk about user interfaces rather than collections ? To keep the same language all along.

    Personally, I feel like the term "user interface" is both general and broad, whereas "collection" specifically refers to the Dask APIs. It helps create clarity in discussions, and it's also been used historically across the docs and codebase. It's maybe better to make the term "collections" more understandable in the docs :)

    I saw my PR isn't valid bc of some formatting error, do you need me to fix this ?

    Yes, please! I've added some comments there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions