I'm using iruby on Jupyter. In python kernel (ipython), one can input a string from notebook by calling input() function.
input()
Is it possible to achieve the same thing in iruby?
If you use Jupyter Notebook, try IRuby.input
IRuby.input
https://github.com/SciRuby/iruby/tree/master/lib/iruby/input
But this input box may not work in Jupyter Lab.
Simple text input is done with IRuby.input:
name = IRuby.input 'Enter your name'
Multiple fields of input is done with IRuby.form:
IRuby.form
result = IRuby.form do input :username button end
It returns a Hash with the input field names as labels.
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.