Skip to content

Stop using dask.config.ensure_file in downstream libraries #9179

Closed

Description

@mrocklin

Ensure file is useful. It's not always what you want though. It creates an optionally-commented-out version of the config file in the user's config directory that corresponds to current default, if no such file exists. This is good because it helps people to quickly see what is available to them.

However, this is also somewhat shortsighted. As we change config we leave lots of these files around. Most people don't actually look at the config when they first start. When they do use config they typically only need a little bit of it, not the whole thing. It's been better to not send these things out all the time, freezing people at whatever config file when they first installed the package (possibly years ago)

Documentation changed in #9171

@jacobtomlinson thoughts as someone who maintains a few downstream libraries?

Activity

  1. added
    needs triage
    on Jun 10, 2022
  2. jacobtomlinson commented on Jun 13, 2022

    @jacobtomlinson
    Member

    I would be in favour of dropping these. As you say the biggest shortfall here is that these files get frozen at a point in time. We could potentially do some ruaml magic to keep them up to date, but I think that would get messy quickly!

    We also have the nice sphinx extension for including the config spec in docs. Not all downstream libraries have a spec, but we should add them.

    I think the only thing I care about is making sure there are lots of easily understandably copy/paste examples in docs as a replacement for this. YAML indentation can cause headaches, especially when users don't use it every day, so making sure they can easily update their config and understand what is going on would be key. The current method of uncommenting things and tweaking values can be quite user friendly when it works, it's just the failure states that are unpleasant.

  3. jacobtomlinson commented on Jun 13, 2022

    @jacobtomlinson
    Member

    I wonder if removing some of the tooling around YAML would also open us up to optionally supporting other formats like TOML that folks may be more familiar with due to it being more used in Python these days. (I will always be a YAML fan due to being a Kubernetes fanatic, but folks seem to like TOML).

  4. added and removed
    needs triage
    on Jun 13, 2022
  5. pavithraes commented on Jul 1, 2022

    @pavithraes
    Member

    @mrocklin @jacobtomlinson What can be the next steps here? Shall we leave this issue open as a discussion or consider closing as resolved?

  6. pavithraes commented on Jul 22, 2022

    @pavithraes
    Member

    Closing for now, but please feel free to re-open it if needed. :)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions