Title: Plotly cannot be loaded if Mathjax v3 is already loaded · Issue #4563 · plotly/plotly.js · GitHub
Open Graph Title: Plotly cannot be loaded if Mathjax v3 is already loaded · Issue #4563 · plotly/plotly.js
X Title: Plotly cannot be loaded if Mathjax v3 is already loaded · Issue #4563 · plotly/plotly.js
Description: Since MathJax v3, Mathjax.Hub does not exist anymore. This makes impossible to load PlotlyJS if Mathjax v3 has already been loaded. I get the following error: TypeError: MathJax.Hub is undefined I believe the error comes from these lines...
Open Graph Description: Since MathJax v3, Mathjax.Hub does not exist anymore. This makes impossible to load PlotlyJS if Mathjax v3 has already been loaded. I get the following error: TypeError: MathJax.Hub is undefined I ...
X Description: Since MathJax v3, Mathjax.Hub does not exist anymore. This makes impossible to load PlotlyJS if Mathjax v3 has already been loaded. I get the following error: TypeError: MathJax.Hub is undefined I ...
Opengraph URL: https://github.com/plotly/plotly.js/issues/4563
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plotly cannot be loaded if Mathjax v3 is already loaded","articleBody":"Since MathJax v3, [`Mathjax.Hub` does not exist anymore](https://docs.mathjax.org/en/latest/upgrading/v2.html#configuration-changes). This makes impossible to load PlotlyJS if Mathjax v3 has already been loaded. I get the following error:\r\n\r\n```\r\nTypeError: MathJax.Hub is undefined\r\n```\r\n\r\nI believe the error comes from these lines `plotly.js`:\r\n```js\r\nmodule.exports = function() {\r\n if(typeof MathJax !== 'undefined') {\r\n var globalConfig = (window.PlotlyConfig || {}).MathJaxConfig !== 'local';\r\n\r\n if(globalConfig) {\r\n MathJax.Hub.Config({\r\n messageStyle: 'none',\r\n skipStartupTypeset: true,\r\n displayAlign: 'left',\r\n tex2jax: {\r\n inlineMath: [['$', '$'], ['\\\\(', '\\\\)']]\r\n }\r\n });\r\n MathJax.Hub.Configured();\r\n }\r\n }\r\n};\r\n```\r\nA check on MathJax version should probably be made here to use `MathJax.Hub` or not?\r\n\r\nHere is a short example where plotly failed to be loaded: [https://codepen.io/bthierry/pen/PoqwXzm](https://codepen.io/bthierry/pen/PoqwXzm)\r\n\r\nMany thanks!","author":{"url":"https://github.com/Bertbk","@type":"Person","name":"Bertbk"},"datePublished":"2020-02-09T13:52:43Z","url":"https://github.com/plotly/plotly.js/issues/4563"}
| 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:0c50d8f9-4189-c381-255d-1bf8106a8511 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 861E:240CD1:B5993C:E8C196:6B00F95D |
| html-safe-nonce | 8de95da3cbeb65b3b66e60874e96265074ded1d03060819eab3a8915bc66a741 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjFFOjI0MENEMTpCNTk5M0M6RThDMTk2OjZCMDBGOTVEIiwidmlzaXRvcl9pZCI6IjU5MDE3NTQ2NTY3NDg1MzQxMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 15d2233d266cccd5f2b77b36f9dfbbf2019a253270c80ad2b8f24b49847cf545 |
| hovercard-subject-tag | issue:562180058 |
| 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/4563/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf22ca0e84de84568991436f0ee90a764da0b2166e3636680c6c7f5a09ebd70d/plotly/plotly.js/issues/4563 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf22ca0e84de84568991436f0ee90a764da0b2166e3636680c6c7f5a09ebd70d/plotly/plotly.js/issues/4563 |
| og:image:alt | Since MathJax v3, Mathjax.Hub does not exist anymore. This makes impossible to load PlotlyJS if Mathjax v3 has already been loaded. I get the following error: TypeError: MathJax.Hub is undefined I ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bertbk |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width