sympy / sympy-live

The source for the code at live.sympy.org
https://live.sympy.org
Other
116 stars 65 forks source link

jQuery Error executing docs examples in live shell #199

Open ivanistheone opened 2 years ago

ivanistheone commented 2 years ago

Clicking on the second example in https://docs.sympy.org/latest/tutorial/calculus.html >>> diff(cos(x), x) opens the live shell sidebar with a spining indicator running, and never return the answer due to:

live-core.js:943 Uncaught TypeError: Cannot read properties of undefined (reading 'Queue')
    at g.done (live-core.js:943:29)
    at g.done (live-sphinx.js:146:14)
    at g.done (classy.js:8:507)
    at g.<anonymous> (live-core.js:904:26)
    at Object.i [as success] (jquery.js:2:88736)
    at c (jquery.js:2:28294)
    at Object.fireWith [as resolveWith] (jquery.js:2:29039)
    at l (jquery.js:2:79800)
    at XMLHttpRequest.<anonymous> (jquery.js:2:82254)
Screen Shot 2022-04-08 at 2 02 43 PM

Looking in the network tab I see the POST to evaluate succeeded and returned the correct ans:

Screen Shot 2022-04-08 at 2 06 39 PM

so the live-shell backend is working.

it must be some frontend thing on the docs page

asmeurer commented 2 years ago

Looks like the Live extension is broken in the docs. The main Live site still works. Maybe the jquery that Sphinx uses is not compatible with the version expected by Live?

asmeurer commented 2 years ago

Note that the dev version of the docs has removed the Live extension, and this will also be the case in the next release. However, if we can easily hotfix the current "latest" version to fix this, we should.