When I try to render a graph in VSC I see the Chart data, options, type, etc, up to Chart created in the developer console but then I get ipywidgetsKernel.js:2 Error: Failed to render widget ead80bfb5bb34800a691c9806717554f, TypeError: Cannot read properties of undefined (reading 'parent')
The full errors are:
|
i |
@ |
ipywidgetsKernel.js:2 |
|
d |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
o |
@ |
ipywidgetsKernel.js:2 |
|
Promise.then (async) |
|
|
|
d |
@ |
ipywidgetsKernel.js:2 |
|
a |
@ |
ipywidgetsKernel.js:2 |
|
Promise.then (async) |
|
|
|
d |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
n |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
Promise.then (async) |
|
|
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsKernel.js:2 |
|
n |
@ |
ipywidgetsKernel.js:2 |
|
fe |
@ |
ipywidgetsKernel.js:2 |
|
(anonymous) |
@ |
ipywidgetsRenderer.js:2 |
|
(anonymous) |
@ |
ipywidgetsRenderer.js:2 |
|
(anonymous) |
@ |
ipywidgetsRenderer.js:2 |
|
s |
@ |
ipywidgetsRenderer.js:2 |
|
Promise.then (async) |
|
|
|
c |
@ |
ipywidgetsRenderer.js:2 |
|
s |
@ |
ipywidgetsRenderer.js:2 |
|
Promise.then (async) |
|
|
|
c |
@ |
ipywidgetsRenderer.js:2 |
|
(anonymous) |
@ |
ipywidgetsRenderer.js:2 |
|
t |
@ |
ipywidgetsRenderer.js:2 |
|
renderOutputItem |
@ |
ipywidgetsRenderer.js:2 |
|
renderOutputItem |
@ |
notebookWebviewPreloads.js:3 |
|
await in renderOutputItem (async) |
|
|
|
h |
@ |
notebookWebviewPreloads.js:3 |
|
render |
@ |
notebookWebviewPreloads.js:3 |
|
render |
@ |
notebookWebviewPreloads.js:3 |
|
renderOutputElement |
@ |
notebookWebviewPreloads.js:3 |
|
renderOutputCell |
@ |
notebookWebviewPreloads.js:3 |
|
await in renderOutputCell (async) |
|
|
|
(anonymous) |
@ |
notebookWebviewPreloads.js:3 |
|
c.set.queue |
@ |
notebookWebviewPreloads.js:3 |
|
enqueue |
@ |
notebookWebviewPreloads.js:3 |
|
(anonymous) |
@ |
notebookWebviewPreloads.js:3 |
|
postMessage (async) |
|
|
|
(anonymous) |
@ |
index.html?id=9e26cb…tebookRenderer:1168 |
|
HostMessaging.channel.port1.onmessage |
@ |
index.html?id=9e26cb…otebookRenderer:308 |
Uncaught (in promise) SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at VM171 embed-amd.js:208:86852
at VM171 embed-amd.js:208:86877
|
(anonymous) |
@ |
VM171 embed-amd.js:208 |
|
(anonymous) |
@ |
VM171 embed-amd.js:208 |
|
Promise.then (async) |
|
|
|
h |
@ |
VM171 embed-amd.js:208 |
|
(anonymous) |
@ |
embed-amd.js:210 |
|
execCb |
@ |
preload.js:1700 |
|
check |
@ |
preload.js:883 |
|
enable |
@ |
preload.js:1176 |
|
init |
@ |
preload.js:788 |
|
(anonymous) |
@ |
preload.js:1460 |
|
setTimeout (async) |
|
|
|
req.nextTick |
@ |
preload.js:1819 |
|
localRequire |
@ |
preload.js:1449 |
|
requirejs |
@ |
preload.js:1801 |
|
(anonymous) |
@ |
embed-amd.js:210 |
|
n |
@ |
embed-amd.js:210 |
|
(anonymous) |
@ |
embed-amd.js:210 |
|
(anonymous) |
@ |
embed-amd.js:210 |
If I do HTML(mychart.get_html_template())
then I get my graph so it's a reasonable work around. I don't really know much about how ipywidgets and all that stuff works in the background so not sure if there's an obvious fix here.