Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Add doc on joblib + joblib_htcondor #278

Merged
merged 10 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 29 additions & 26 deletions docs/conf.py
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to get rid of the commented lines or will we use it later?

Original file line number Diff line number Diff line change
Expand Up @@ -212,39 +212,42 @@
# -- Sphinx-Gallery configuration --------------------------------------------


class SubSectionTitleOrder:
"""Sort example gallery by title of subsection.
# class SubSectionTitleOrder:
# """Sort example gallery by title of subsection.

Assumes README.txt exists for all subsections and uses the subsection with
dashes, '---', as the adornment.
"""
# Assumes README.txt exists for all subsections and uses the subsection with
# dashes, '---', as the adornment.
# """

def __init__(self, src_dir):
self.src_dir = src_dir
self.regex = re.compile(r"^([\w ]+)\n-", re.MULTILINE)
# def __init__(self, src_dir):
# self.src_dir = src_dir
# self.regex = re.compile(r"^([\w ]+)\n-", re.MULTILINE)

def __repr__(self):
return f"<{self.__class__.__name__}>"
# def __reduce__(self):
# return (self.__class__, (self.src_dir, ))

def __call__(self, directory):
src_path = os.path.normpath(os.path.join(self.src_dir, directory))
# def __repr__(self):
# return f"<{self.__class__.__name__}>"

# Forces Release Highlights to the top
if os.path.basename(src_path) == "release_highlights":
return "0"
# def __call__(self, directory):
# src_path = os.path.normpath(os.path.join(self.src_dir, directory))

readme = os.path.join(src_path, "README.txt")
# # Forces Release Highlights to the top
# if os.path.basename(src_path) == "release_highlights":
# return "0"

try:
with open(readme) as f:
content = f.read()
except FileNotFoundError:
return directory
# readme = os.path.join(src_path, "README.txt")

title_match = self.regex.search(content)
if title_match is not None:
return title_match.group(1)
return directory
# try:
# with open(readme) as f:
# content = f.read()
# except FileNotFoundError:
# return directory

# title_match = self.regex.search(content)
# if title_match is not None:
# return title_match.group(1)
# return directory


ex_dirs = [
Expand All @@ -269,7 +272,7 @@ def __call__(self, directory):
"examples_dirs": example_dirs,
"gallery_dirs": gallery_dirs,
"nested_sections": True,
"subsection_order": SubSectionTitleOrder("../examples"),
# "subsection_order": SubSectionTitleOrder("../examples"),
"filename_pattern": "/(plot|run)_",
"download_all_examples": False,
}
Expand Down
Binary file added docs/images/joblib_htcondor/condor_q.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/joblib_htcondor/ui_main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/joblib_htcondor/ui_open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/joblib_htcondor/ui_stacked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/links.inc
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@
.. _`scikit-optimize`: https://scikit-optimize.readthedocs.io/en/stable/
.. _`Optuna`: https://optuna.org
.. _`optuna_integration`: https://github.com/optuna/optuna-integration
.. _`Joblib`: https://joblib.readthedocs.io/en/stable/
.. _`joblib-htcondor`: https://github.com/juaml/joblib-htcondor
1 change: 1 addition & 0 deletions docs/selected_deeper_topics/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Selected deeper topics
cross_validation_splitter.rst
stacked_models.rst
CBPM.rst
joblib.rst
Loading
Loading