-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECharts can not be displayed in VSCode (and GitHub) #410
Comments
From a simple fix this turned into something much bigger. So...:
The reason Kotlin Kandy works in cases 2 & 3 is that the rendering seems to be done server-side and there are embeded SVGs in the |
Ok, getting somewhere with VSCode. There's a "Jupyter Notebook Renderers" extension from Microsoft. If I disable it and restart VSCode, the charts start rendering. I suspect it loads some conflicting JS libraries. It will need further investigation, but at least we know where to look ![]() |
can confirm that disabling that notebook renderer extension makes it work for me. that is unfortunate as it provides lots of other nice renderers. |
whats weird though is that notebook renderer isn't supposed to affect text/html... |
using developer tools I took a snapshot to spot the diff with and without the rendering. With jupyter notebook rendering there are two iframes - one nested in another.
without its just one iframe and all is good.
|
Aha. I am not much of a VSCode user, so I was unsure how to even debug the HTML/JS involved. Thanks for the hint about developer tools. We'll see if we can do anything about it from our end. |
I've made investigation of echarts rendering issue in vscode. I would like to share my conclusions. `
` For now I'm trying to find some solution that doesn't need additional js library as requireJS is. |
This script works with Notebook Renderers Plugin and without it. JS script is in text/html field. |
trying the ideas from the task... Still fails in VSCode
trying to get echarts working with dflib: https://github.com/jupyter-java/jupyter-java-examples/blob/main/notebooks/java-dflib-echarts.ipynb
See that it does generates a html/text output cell with:
but i cant get that to render in vscode jupyter notebook nor in github notebook preview.
The text was updated successfully, but these errors were encountered: