Skip to content

WIP: save backend kwargs when using config as context - #7528

Draft
eriknw wants to merge 21 commits into
networkx:mainfrom
eriknw:config_extra_kwargs
Draft

eriknw wants to merge 21 commits into
networkx:mainfrom
eriknw:config_extra_kwargs

Conversation

@eriknw

@eriknw eriknw commented Jun 27, 2024

Copy link
Copy Markdown
Contributor

This is an experiment exploring @Schefflera-Arboricola's comment #7485 (review) .

This combines #7485 and #7363, and allows backend keyword arguments to be set via config context manager. For example:

with nx.config(get_chunks=chunks):
    ...  # use nx-parallel and set `get_chunks` keyword via config value

This keeps nx.config.backend config option, because I think it is useful to document and it's useful to check for valid backend name when setting the configuration value for it.

This is perfectly functional. The new behavior currently lacks documentation and tests; awaiting feedback.

@eriknw eriknw added the Dispatching Related to dispatching and backend support label Jun 27, 2024
@eriknw
eriknw marked this pull request as draft July 3, 2024 10:11

This branch has not been deployed

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

Labels

Dispatching Related to dispatching and backend support type: Enhancements

Development

Successfully merging this pull request may close these issues.

1 participant