如何将图像插入到具有 iRuby 内核的 Jupyter-lab 笔记本中

问题描述 投票:0回答:1

我在 Jupyter-lab 中使用 iruby 内核。我希望将 Ruby 代码中的图像系统地插入到笔记本中,作为一些计算的结果。通常图像是 *.png。

同样的问题在 here 得到了回答,但是是针对 Python 的。有什么想法吗?

jupyter-lab iruby
1个回答
0
投票

我喜欢一个对我来说可以接受的解决方案

IRuby.html('<img src="./simple1.png">')
© www.soinside.com 2019 - 2024. All rights reserved.