From a52f39d1257b7ec261b62cffdaa40fa61a172755 Mon Sep 17 00:00:00 2001 From: Oriol Abril-Pla Date: Mon, 16 Jan 2023 18:53:23 +0100 Subject: [PATCH 1/2] Add ipywidgets javascript --- docs/conf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 28daf74f..032ab2b8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -42,6 +42,16 @@ nb_execution_mode = "cache" nb_execution_show_tb = "READTHEDOCS" in os.environ nb_execution_timeout = 60 # Note: 30 was timing out on RTD +nb_ipywidgets_js = { + "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js": { + "integrity": "sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=", + "crossorigin": "anonymous" + }, + "https://cdn.jsdelivr.net/npm/@jupyter-widgets/html-manager@*/dist/embed-amd.js": { + "data-jupyter-widgets-cdn": "https://cdn.jsdelivr.net/npm/", + "crossorigin": "anonymous" + } +} # nb_render_image_options = {"width": "200px"} # application/vnd.plotly.v1+json and application/vnd.bokehjs_load.v0+json suppress_warnings = ["mystnb.unknown_mime_type"] From 9e4abff90d64e41621583a98e7e61636281d52de Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Jan 2023 17:55:48 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 032ab2b8..41b248b5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,14 +43,14 @@ nb_execution_show_tb = "READTHEDOCS" in os.environ nb_execution_timeout = 60 # Note: 30 was timing out on RTD nb_ipywidgets_js = { - "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js": { - "integrity": "sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=", - "crossorigin": "anonymous" + "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js": { + "integrity": "sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=", + "crossorigin": "anonymous", }, "https://cdn.jsdelivr.net/npm/@jupyter-widgets/html-manager@*/dist/embed-amd.js": { - "data-jupyter-widgets-cdn": "https://cdn.jsdelivr.net/npm/", - "crossorigin": "anonymous" - } + "data-jupyter-widgets-cdn": "https://cdn.jsdelivr.net/npm/", + "crossorigin": "anonymous", + }, } # nb_render_image_options = {"width": "200px"} # application/vnd.plotly.v1+json and application/vnd.bokehjs_load.v0+json