Search code examples
jupyter-labiruby

How to insert an image into a Jupyter-lab notebook with iRuby kernel


I am using iruby kernel in Jupyter-lab. I wish to insert an image systematically from Ruby code into the notebook, as a result of some calculations. Typically the image will be a *.png.

The same question is answerred here, but for Python. Any ideas?


Solution

  • I fond a solution that for me is acceptable

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