Kotlin / kotlin-jupyter

Kotlin kernel for Jupyter/IPython
Apache License 2.0
1.12k stars 107 forks source link

Rendering MimeTypedResult object as plot/image #343

Closed cnchann closed 2 years ago

cnchann commented 2 years ago

image

May I ask if there is a way to render the MimeTypedResult as an image/plot? Thank you so much for the help!

ileasile commented 2 years ago

Hi! You seem to use the old version of API, MimeTypedResult class is located in another package now: https://github.com/Kotlin/kotlin-jupyter/blob/a4867787fd1d23de042f140d961af5033450591f/jupyter-lib/api/src/main/kotlin/org/jetbrains/kotlinx/jupyter/api/results.kt#L110

Could you please show the full code (full notebook and/or library source code etc.)?