SciRuby / iruby

Official gem repository: Ruby kernel for Jupyter/IPython Notebook
https://github.com/SciRuby/iruby
MIT License
890 stars 27 forks source link

How to inline an image in a jupyter-labnotebook ? #336

Closed nmingotti closed 7 months ago

nmingotti commented 7 months ago

Hi, I am trying to work with iruby in Jupyter-lab. Suppose i have a PNG generated by previous calculations. I wish to add (inline) this PNG into the notebook, as a result cell, how can i do ? Is it possible ?

bye Nicola

kojix2 commented 7 months ago

Hi @nmingotti

Are you looking for IRuby#display ? Or some other function?

nmingotti commented 7 months ago

I found a way to solve indirectly :) Thank you @kojix2 , U r very nice !

IRuby.html('<img src="./simple1.png">')