ipywidgets icon indicating copy to clipboard operation
ipywidgets copied to clipboard

negrect 'manual' with text box created by interact_manual( ) on 8.0.5

Open asb-kinsan opened this issue 2 years ago • 2 comments
trafficstars

Description

When a text box is created by the function interact_manual( ) and text is input to the box, the function specified as the first argument of interact_manual( ) is executed before the button is pushed.

On 8.0.4, the creation of a text box with interact_manual( ) causes a warning message. The issue is solved on 8.0.5 but it makes new issue. This issue is also found when interactive( ) is used with {'manual':True} argument.

Reproduce

The following code is a sample for this issue.

def func(s="abc"): print(s) interact_manual(func);

I executed this code on jupyterlab, and input text to the create text box. After input text, I clicked any place on the browser window other than submit button, the func( ) is executed.

Only text box causes this behavier. Slider , dropdown list and so on does not.

Expected behavior

The function specified as the first argument should be executed after pushing the "Run interact" button.

Context

  • ipywidgets version : 8.0.5
  • Operating System and version: Windows 10
  • Browser and version: Microsoft Edge 111.0.1661.54

If using JupyterLab

  • JupyterLab version:3.6.2
Installed Labextensions
Paste the output from your command line running `jupyter labextension list`.

asb-kinsan avatar Mar 28 '23 02:03 asb-kinsan

I executed same sample code on JupyterLab 4.0.2 with ipywidgets 8.0.6, and confirmed that the problem is not fixed.

asb-kinsan avatar Jun 22 '23 02:06 asb-kinsan

Now I tested it with ipywidgets 8.1.1, and I found this problem is solved.

asb-kinsan avatar Oct 18 '23 02:10 asb-kinsan