jupyter / nbviewer

nbconvert as a web service: Render Jupyter Notebooks as static web pages
https://nbviewer.jupyter.org
Other
2.21k stars 547 forks source link

TypeError: element.get is not a function (in require.js) #1036

Open sarusso opened 1 year ago

sarusso commented 1 year ago

I am developing a Python library for time series data analysis and I embedded a custom plotting engine with HTML and Javascript, based on Dygraphs.

Last time I checked my demo and quicktart notebooks on nbviewer.org, the plots were correctly rendered, but now I see no plots at all and in the Javascript console I get this error message, one for each plot that was supposed to be generated:

TypeError: element.get is not a function               require.js:900
    at Quickstart.ipynb:18008:72
    at Object.execCb (require.js:1690:33)
    at Module.check (require.js:865:51)
    at Module.enable (require.js:1177:22)
    at Module.init (require.js:783:26)
    at require.js:1453:36

To Reproduce

  1. Go here
  2. Scroll down until cell number 4
  3. See that no plot is generated, open Javascript console to check the error.

Expected behavior The plot should be correctly generated. Check this notebook, where I generated the plots in image format, to get an idea about what should appear (but as an interactive, Javascript-based plot).

Desktop:

Additional context I unfortunately did not note down the build version on nbviewer when it is working. Right now the nbviewer version is: 8b013f7