scirubyiruby

How to input a string in IRuby + Jupyter?


I'm using iruby on Jupyter. In python kernel (ipython), one can input a string from notebook by calling input() function.

Is it possible to achieve the same thing in iruby?


Solution

  • If you use Jupyter Notebook, try IRuby.input

    https://github.com/SciRuby/iruby/tree/master/lib/iruby/input

    But this input box may not work in Jupyter Lab.