Skip to content

Fix docstrings of dispatchable functions - #7679

Merged
Schefflera-Arboricola merged 1 commit into
networkx:mainfrom
eriknw:docstrings_when_optimized
Oct 15, 2024
Merged

Schefflera-Arboricola merged 1 commit into
networkx:mainfrom
eriknw:docstrings_when_optimized

Conversation

@eriknw

@eriknw eriknw commented Oct 14, 2024

Copy link
Copy Markdown
Contributor

This may not fix when building the docs; let's experiment!

For backends to show up in docs, we need to load backend_info before we decorate functions with _dispatchable.

This fixes #7675 and attempts to fix #7677, and is a follow-up to #7672. Let's see if #7671 remains fixed with this PR.

@Schefflera-Arboricola will this work for nx-parallel?

This may not fix when building the docs; let's experiment.

@Schefflera-Arboricola Schefflera-Arboricola left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see if #7671 remains fixed with this PR.

yes , see here

@Schefflera-Arboricola will this work for nx-parallel?

yes, see here and :

>>> import networkx as nx
>>> nx.config
NetworkXConfig(backend_priority=BackendPriorities(algos=[], generators=[]), backends=Config(parallel=ParallelConfig(active=False, backend='loky', n_jobs=None, verbose=0, temp_folder=None, max_nbytes='1M', mmap_mode='r', prefer=None, require=None, inner_max_num_threads=None, backend_params={})), cache_converted_graphs=True, fallback_to_nx=False, warnings_to_ignore=set())
>>> 

Thank you very much @eriknw for fixing both the issues :)

@Schefflera-Arboricola Schefflera-Arboricola added type: Bug fix Dispatching Related to dispatching and backend support labels Oct 15, 2024
@Schefflera-Arboricola
Schefflera-Arboricola merged commit 2f45b4d into networkx:main Oct 15, 2024
@jarrodmillman jarrodmillman added this to the 3.5 milestone Oct 15, 2024
@Schefflera-Arboricola Schefflera-Arboricola removed this from the 3.5 milestone Oct 15, 2024
@Schefflera-Arboricola

Schefflera-Arboricola commented Oct 15, 2024 •

Copy link
Copy Markdown
Member

I think we need to make a 3.4.2 release @jarrodmillman because currently the stable documentation doesn't have the additional information about backend implementation for any of the algorithms. And this PR fixed it. I think it's a pretty important thing that's missing from our current stable docs. So, it makes sense to me to make another release. Thoughts? @dschult @MridulS @rlratzel @rossbar

Also I don't have the permission to create a milestone so I have just removed 3.5 for now.

@dschult

dschult commented Oct 15, 2024

Copy link
Copy Markdown
Member

Thanks @eriknw and @Schefflera-Arboricola !!
Now I'll go figure out what you did. :)
This is great--

@jarrodmillman jarrodmillman added this to the 3.4.2 milestone Oct 17, 2024
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: Bug fix

Development

Successfully merging this pull request may close these issues.

BUG: backend_info entry_point is not working docstring can be None when calling python with -OO

4 participants