holgerbrandl
02/08/2021, 8:56 PMIgor Alshannikov
02/09/2021, 12:54 AMholgerbrandl
02/09/2021, 5:59 AMIgor Alshannikov
02/09/2021, 6:15 PMholgerbrandl
07/16/2021, 6:11 AMholgerbrandl
07/16/2021, 6:12 AMIlya Muradyan
07/16/2021, 11:29 AMIlya Muradyan
07/16/2021, 11:30 AMIgor Alshannikov
07/16/2021, 3:52 PMimport jetbrains.datalore.plot.Plot SvgExport
which you can use to obtain plot's SVG as a string, which then can be displayed in notebook as HTML:
PlotSvgExport.buildSvgImageFromRawSpecs(spec)
@holgerbrandl do you know why Gitlab fails to load/execute JS?holgerbrandl
07/18/2021, 8:19 AMorg.jetbrains.kotlinx.jupyter.api.MimeTypedResult
with type image/jpeg
(also see https://github.com/holgerbrandl/kravis/blob/4631a555c22f33464e771675f3cf60a1a83ef759/src/main/kotlin/kravis/device/JupyterDevice.kt#L59-L59). I've checked and the data seems correctly inlined in the ipynb file:
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"image/jpeg": "/9j/4AAQSkZJRgA
The images are correctly displayed on github and nbpreview so it seems just gitlab preview which is struggling. It's certainly just a minor flaw, I just wanted to make sure that I'm not doing it wrong.