nbviewer
nbviewer copied to clipboard
TypeError: element.get is not a function (in require.js)
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
- Go here
- Scroll down until cell number 4
- 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:
- OS: macOS Monterey
- Browser: Chrome
- Version: 108.0.5359.124 (Official Build) (arm64)
Additional context I unfortunately did not note down the build version on nbviewer when it is working. Right now the nbviewer version is: 8b013f7