-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nbconvert from Ubuntu packages is not suitable for GitHub Pages #4651
Labels
Comments
kodiakhq bot
added a commit
that referenced
this issue
Jan 23, 2023
Fixes #4651 Description of changes: - use cloud providers to fetch JavaScript dependencies - cleanup test cases involved in the tutorial toolchain
jngrad
pushed a commit
to jngrad/espresso
that referenced
this issue
Mar 2, 2023
Fixes espressomd#4651 Description of changes: - use cloud providers to fetch JavaScript dependencies - cleanup test cases involved in the tutorial toolchain
jngrad
pushed a commit
to jngrad/espresso
that referenced
this issue
Mar 2, 2023
Fixes espressomd#4651 Description of changes: - use cloud providers to fetch JavaScript dependencies - cleanup test cases involved in the tutorial toolchain
jngrad
pushed a commit
to jngrad/espresso
that referenced
this issue
Mar 2, 2023
Fixes espressomd#4651 Description of changes: - use cloud providers to fetch JavaScript dependencies - cleanup test cases involved in the tutorial toolchain
jngrad
pushed a commit
to jngrad/espresso
that referenced
this issue
Mar 2, 2023
Fixes espressomd#4651 Description of changes: - use cloud providers to fetch JavaScript dependencies - cleanup test cases involved in the tutorial toolchain
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
nbconvert
package provides sensible default configuration options for theHTMLExporter
class, which can be overridden by a custom derived class if so desired (documentation).By default,
HTMLExporter.mathjax_url
points tohttps://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js
andHTMLExporter.require_js_url
points tohttps://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js
. In the Ubuntu package, these default paths have been replaced byfile:///usr/share/javascript/mathjax/MathJax.js
resp.file:///usr/share/javascript/requirejs/require.min.js
. These URIs cannot be resolved in a web browser when the HTML page is served from e.g. GitHub Pages.As a result, tutorials currently deployed to https://espressomd.github.io/tutorials.html don't have access to MathJax and cannot typeset their mathematical equations.
Solution: either write and maintain a custom derived
HTMLExporter
class, or re-installnbconvert
in the dockerfile from pypi withpython3 -m pip install --user 'nbconvert>6.4.0,<6.5'
to recover the upstream default values.The text was updated successfully, but these errors were encountered: