logo

Crowdly

Browser

Додати до Chrome

Consider the following code from the Plotly tutorial: text_widget = widgets....

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Consider the following code from the Plotly tutorial:

text_widget = widgets.HTML(description="Selection:", value="[]")

fig = go.FigureWidget()

fig.update_layout(width=700, height=500)

scatter = go.Scatter(x=iris["petal_width"], y=iris["sepal_length"], mode="markers")

fig.add_trace(scatter)

def selection_function(trace, points, selector):

    inds = points.point_inds

    text_widget.value = str(inds)

fig.data[-1].on_selection(selection_function)

Which of the following statements are true?

100%
100%
0%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.jku.at?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome