简体   繁体   中英

IPython.display clear_output not working in Microsoft Azure Synapse Notebooks

I'm trying to set up a dropdown widget with ipywidgets, IPython.display on a notebook on the Microsoft Azure Synapse platform.

Even with simple code I get this error message:

`JsonSerializationException: Error converting value "clear_output" to type 'Microsoft.Analytics.SynapseNotebookExecService.Models.Message.MessageType'. Path 'header.msg_type', line 1, position 89.

--> ArgumentException: Requested value 'clear_output' was not found.`

Thank you for your kind help.

from ipywidgets import widgets 
dropdown = widgets.Dropdown(
    options=[('One', 1), ('Two', 2), ('Three', 3)],
    value=2,
    description='Number:',
)
display(dropdown)

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM