question

imbachb-2223 avatar image
0 Votes"
imbachb-2223 asked ramr-msft edited

Azure ml notebook does not show widgets from ipywidgets

ipywidgets seems to work fine for the simplest usages, i.e. just using a slider. However, when trying to use more complex functionality the notebook does not show / display the widgets anymore.

See in the picture:
96865-image.png

The simple usage

 widgets.IntSlider()

works fine.
However, using ipywidget's interact does not show any widget:

 def f(x):
     return x
    
 interact(f, x=10)

When I change the editor using the dropdown
96817-image.png

and use Jupyter or JupyterLab, everything works as expected without flaws.

azure-machine-learning
image.png (17.0 KiB)
image.png (7.9 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@imbachb-2223 Thanks for the question. Can you please add more details about ipywidgets version that you are trying. Please follow the link for the widget interact. We could see widgets in the Jupyterlab as shown below from the portal.
97167-image.png


0 Votes 0 ·
image.png (18.5 KiB)

@ramr-msft Thanks for the fast reply. As mentioned before, the ipywidgets work fine when I use the JupyterLab as the editor. The widgets however do not appear when I try to run the notebook directly in the Azure Machine Learning Portal as shown in this picture:
97232-image.png


Is this simply not supported yet?
Running pip show ipywidgets inside the compute gives me following:

 pip show ipywidgets
 Name: ipywidgets
 Version: 7.6.3
 Summary: IPython HTML widgets for Jupyter
 Home-page: http://ipython.org
 Author: IPython Development Team
 Author-email: ipython-dev@scipy.org
 License: BSD
 Location: /anaconda/envs/azureml_py38/lib/python3.8/site-packages
 Requires: widgetsnbextension, traitlets, ipython, jupyterlab-widgets, ipykernel, nbformat
 Required-by: fairlearn, azureml-widgets


0 Votes 0 ·
image.png (52.8 KiB)

@imbachb-2223 Thanks, We are able to reproduce the issue in azure machine learning portal and same has been forwarded to the product team. You can also raise an issue in the Azure machine learning notebooks.


0 Votes 0 ·
Show more comments

1 Answer

ramr-msft avatar image
0 Votes"
ramr-msft answered ramr-msft edited

@imbachb-2223 Thanks for the feedback. This specific type of ipywidget is currently not supported, we have roadmap to support in the future.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.