Multiple WebViews


In my view I would like to have different tabs with different WebViews and/or PlotlyView. I thought using unique names would do the trick, but it only shows the last one then.

Any ideas?



Did you also give it a unique method name? In Python, when defining 2 functions with the same name, the last one will overwrite the first.

@WebView("View 1")
def my_web_view(...)

@WebView("View 2")
def my_web_view(...)  # must be renamed, method 'my_web_view' already exists!
1 Like

Of course! :face_with_hand_over_mouth:

Thanks for the tip!