Skip to content

Commit 27413e5

Browse files
authored
Merge branch 'main' into pre-commit-ci-update-config
2 parents 301c841 + 383f64c commit 27413e5

5 files changed

Lines changed: 8 additions & 29 deletions

File tree

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ build:
1111
- asdf global uv latest
1212
build:
1313
html:
14-
- env UV_CONSTRAINT=.github/constraints.txt uvx hatch run docs:build
14+
- env UV_CONSTRAINT=.github/constraints.txt uvx hatch run docs:build -T
1515
- mv docs/_build $READTHEDOCS_OUTPUT

docs/conf.py

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
import sys
6-
from functools import partial
76
from importlib.metadata import metadata
87
from pathlib import Path
98
from subprocess import run
@@ -61,34 +60,15 @@
6160
# myst_nb settings
6261
nb_execution_mode = "cache"
6362
nb_execution_show_tb = True
64-
nb_execution_timeout = 30 # seconds
63+
nb_execution_timeout = 60 # seconds
6564

6665
holoviews_backends = ["bokeh", "matplotlib", "plotly"]
66+
exec_jupyter_code = "import hv_anndata"
67+
exec_jupyter_kernel = "hv-anndata"
68+
69+
run(["hatch", "-v", "run", "docs:install-kernel"], check=True)
6770

6871
# autodoc/autosummary
6972
autodoc_default_options = {
7073
"members": False,
7174
}
72-
73-
74-
# https://github.com/executablebooks/MyST-NB/issues/574
75-
def _patch_myst_nb() -> None:
76-
from jupyter_cache.executors import ( # type: ignore[import-not-found] # noqa: PLC0415
77-
utils,
78-
)
79-
from myst_nb.core.execute import ( # type: ignore[import-not-found] # noqa: PLC0415
80-
cache,
81-
direct,
82-
)
83-
84-
run(
85-
["hatch", "-v", "run", "docs:install-kernel"],
86-
check=True,
87-
)
88-
89-
cache.single_nb_execution = direct.single_nb_execution = partial(
90-
utils.single_nb_execution, kernel_name="hv-anndata"
91-
)
92-
93-
94-
_patch_myst_nb()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ docs = [
5151
"sphinx",
5252
"sphinx-autodoc-typehints",
5353
"sphinx-design",
54-
"sphinx-exec-jupyter[holoviews] @ git+https://github.com/flying-sheep/sphinx-exec-jupyter.git",
54+
"sphinx-exec-jupyter[holoviews]",
5555
"sphinx-issues",
5656
]
5757

src/hv_anndata/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def aggregate(
337337
cls,
338338
dataset: Dataset,
339339
kdims: list[Dimension | str],
340-
function: Callable[ValueType, ValueType],
340+
function: Callable[[ValueType], ValueType],
341341
**kwargs: Any, # noqa: ANN401
342342
) -> tuple[pd.DataFrame, list[Dimension]]:
343343
"""Aggregate the current view."""

src/hv_anndata/plotting/scanpy/_core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,6 @@ def matrixplot(
506506
)
507507
508508
"""
509-
# TODO: make AdDim inspectable: https://github.com/holoviz-topics/hv-anndata/pull/87
510509
if not isinstance(group_by.acc, MetaAcc):
511510
msg = f"`by` needs to be `A.obs['…']` or `A.var['…']`, got {group_by!r}"
512511
raise TypeError(msg)

0 commit comments

Comments
 (0)