Skip to content

Commit

Permalink
Update notebooks (#3216)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Sep 2, 2024
1 parent 8159592 commit 3c13495
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions docs/extensions/canonical_tutorial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from __future__ import annotations

from typing import TYPE_CHECKING

from sphinx.util.docutils import SphinxDirective

if TYPE_CHECKING:
from typing import ClassVar

from docutils import nodes
from sphinx.application import Sphinx


class CanonicalTutorial(SphinxDirective):
"""In the scanpy-tutorials repo, this links to the canonical location (here!)."""

required_arguments: ClassVar = 1

def run(self) -> list[nodes.Node]:
return []


def setup(app: Sphinx) -> None:
app.add_directive("canonical-tutorial", CanonicalTutorial)
2 changes: 1 addition & 1 deletion docs/how-to/knn-transformers.ipynb
2 changes: 1 addition & 1 deletion docs/how-to/plotting-with-marsilea.ipynb

0 comments on commit 3c13495

Please sign in to comment.