Including RequireJS #390
-
Hiya, thanks for the fantastic theme! I'm trying to populate my docs with some notebook tutorial that make use of interactive plotly plots. I use When loading the pages with the plots, the console indicates that
despite including both: # conf.py
nbsphinx_require_js_path = (
"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"
)
...
def setup(app):
app.add_js_file(
"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"
) in I have also tried with: # conf.py
html_js_files = [
'js/require.js',
] using a local copy of https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js in EDIT: I managed to resolve my problem by setting: # conf.py
os.environ["PLOTLY_RENDERER"] = "sphinx_gallery" which seems to bundle the required JS |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you tried: # conf.py
html_js_files = [
'https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js',
] |
Beta Was this translation helpful? Give feedback.
Have you tried: