Title: Plotly Disables Latex Rendering in HTML output of Jupyter Notebook · Issue #2300 · plotly/plotly.js · GitHub
Open Graph Title: Plotly Disables Latex Rendering in HTML output of Jupyter Notebook · Issue #2300 · plotly/plotly.js
X Title: Plotly Disables Latex Rendering in HTML output of Jupyter Notebook · Issue #2300 · plotly/plotly.js
Description: In my limited understanding of Javascript it seems like a plotly.js or an NbConvert bug. Plotly is using the following configuration option for MathJax: MathJax.Hub.Config({messageStyle:"none",skipStartupTypeset:!0 Looking at the code he...
Open Graph Description: In my limited understanding of Javascript it seems like a plotly.js or an NbConvert bug. Plotly is using the following configuration option for MathJax: MathJax.Hub.Config({messageStyle:"none",skip...
X Description: In my limited understanding of Javascript it seems like a plotly.js or an NbConvert bug. Plotly is using the following configuration option for MathJax: MathJax.Hub.Config({messageStyle:"none&...
Opengraph URL: https://github.com/plotly/plotly.js/issues/2300
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plotly Disables Latex Rendering in HTML output of Jupyter Notebook","articleBody":"In my limited understanding of Javascript it seems like a plotly.js or an NbConvert bug. \r\n\r\nPlotly is using the following configuration option for MathJax:\r\n`MathJax.Hub.Config({messageStyle:\"none\",skipStartupTypeset:!0` \r\n\r\nLooking at the code [here](https://github.com/plotly/plotly.js/blob/5bc25b490702e5ed61265207833dbd58e8ab27f1/src/lib/svg_text_utils.js#L174) and in light of the MathJax documentation [here](https://docs.mathjax.org/en/v1.0/typeset.html) it's more of a Plotly issue IMHO than a bug in Nbconvert.\r\n\r\n```\r\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, tmpDiv.node()], function() {\r\n var glyphDefs = d3.select('body').select('#MathJax_SVG_glyphs');\r\n\r\n if(tmpDiv.select('.MathJax_SVG').empty() || !tmpDiv.select('svg').node()) {\r\n Lib.log('There was an error in the tex syntax.', _texString);\r\n _callback();\r\n }\r\n else {\r\n var svgBBox = tmpDiv.select('svg').node().getBoundingClientRect();\r\n _callback(tmpDiv.select('.MathJax_SVG'), glyphDefs, svgBBox);\r\n }\r\n\r\n tmpDiv.remove();\r\n });\r\n\r\n```\r\nOnly Latex inside a particular DIV element is queued for Mathjax rendering by Plotly. This makes sense but combined with the configuration above, perhaps, disables automatic rendering in the rest of the page. Nbconvert's HTML seems to rely on this document-wide auto rendering.","author":{"url":"https://github.com/SafwanAhmad","@type":"Person","name":"SafwanAhmad"},"datePublished":"2018-01-26T18:57:22Z","url":"https://github.com/plotly/plotly.js/issues/2300"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9e1c657e-8927-8a54-b1b7-2347b9d22aa7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB8A:240CD1:CEA0A0:1085228:6B0101DA |
| html-safe-nonce | 5c4a17f05dc1903725b828f1aba9f0a8192173f2866bce3efd75232b4fa16ecb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjhBOjI0MENEMTpDRUEwQTA6MTA4NTIyODo2QjAxMDFEQSIsInZpc2l0b3JfaWQiOiI3NTgzOTA2NzY0NjIyNDYzNDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1f75eafd4383746b449a384f72a6e882a05acd0b93798166487913be4a23be42 |
| hovercard-subject-tag | issue:291998117 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/2300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8474650e1b0c2766dd1c263aac6123391b1fda6e4df7f1eb600f93db16387f24/plotly/plotly.js/issues/2300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8474650e1b0c2766dd1c263aac6123391b1fda6e4df7f1eb600f93db16387f24/plotly/plotly.js/issues/2300 |
| og:image:alt | In my limited understanding of Javascript it seems like a plotly.js or an NbConvert bug. Plotly is using the following configuration option for MathJax: MathJax.Hub.Config({messageStyle:"none",skip... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SafwanAhmad |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width