Skip to content

Using IRuby.input or IRuby.form hangs Kernel #320

Open
@Xasin

Description

@Xasin

Hello everyone!

I am having a problem using the IRuby Jupyter kernel on my laptop.
The problem:
Immediately after using the IRuby.input or IRuby.form command, the actual form does not render properly.
A warning is also shown:
image

In addition to this, the Kernel now hangs until restarted. Clicking "done" has no effect.
Hitting enter on the form panels causes the browser to reload the website.

The same warning is shown when using IRuby.input, and the behaviour on hitting enter is the same.

It appears that the JS Snippet responsible for registering the form submission fails to execute properly.

Please note that the python3 input function works perfectly fine.
I tested this in Chromium and Firefox, same behaviour in both browsers.

I installed it according to the recommended installation methods given on this GitHub page.
Versions:

  • ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux-gnu]
  • Python 3.9.2
  • Jupyter Lab Version 3.4.3

I had to manually install the erector gem as it seems to be a missing dependency when installing the iruby gem.

I would love to be able to use this for some of my own work, but having an input panel would be incredibly helpful, if not outright part of the base capabilities that I expect from this.
I hope this issue can be resolved quickly.

Kind regards,
Xasin

EDIT:
I initially thought the kernel hangs, but it seems it really is just waiting on the message of the Jupyter Notebook to come back.
As the form can never be submitted, the kernel then hangs at this cell indefinitely, but it CAN be interrupted, and if the statement is wrapped within a Timeout.timeout, it does abort execution after the timeout.

Still - having inputs would be very, very useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions