Closed Bluejay47 closed 2 years ago
I confirm the problem on Mac with jupyter-lab 0.35.4 and ijavascript-await on node 10.12.
This may be an issue recently fixed in JupyterLab (see https://github.com/jupyterlab/jupyterlab/pull/5610).
@n-riesco @Morikko
Same problem here and now, on a fresh install of Anaconda3
with jupyter-lab
and ijavascript
(installed per In macOS, Homebrew and pip can be used to install IJavascript and its prerequisites: instructions.
$$.svg("<svg><rect width=80 height=80 style='fill: orange;'></svg>"); // does not work - broken image icon
$$.html("<svg><rect width=250 height=25 style='fill: orange;'></svg>") // workaround - orange square as advertised
macOS 10.15.7 (19H2)
jupyter-lab --version : 2.2.6
ijsinstall --version: 5.2.0
I'm closing, as $$.html
works around the issue, and https://github.com/jupyterlab/jupyterlab/pull/5610 suggests the decision to skip rendering SVG elements is deliberate.
I am not even sure this is supposed to work so I apologize if this post is off topic.
The following code
Generates a rectangle as expected in Jupyter Notebooks, but generates a broken image icon in JupyterLab.
Am I doing something incorrectly or is this a compatibility issue with JupterLab?
Thanks,