From 61156a85438223b6e0217e5311aa319854b17435 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 16 Jul 2024 19:32:29 +0200 Subject: Add MyBinder links to notebooks in docs. --- docs/conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index a83ec57..b258aaa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -234,6 +234,14 @@ autoclass_content = "both" nbsphinx_allow_errors = True nbsphinx_execute = "never" +nbsphinx_prolog = """ +{% set notebook_path = env.doc2path(env.docname, base=None) | replace("notebook/", "") %} +.. raw:: html + + MyBinder + +""" + def linkcode_resolve(domain, info): if domain != 'py': -- cgit v1.2.3-70-g09d2