How to update a Python class instance plot attribute from button callback?

For future reference: self.tabs.__setitem__(tab_index, new_value) where self.tabs is a pn.Tabs instance solved the updating probelm in my case. There seems to be no instructions for using the __setitem__-method on the Panel webiste. I was lucky to bump into a similar question with a code snippet.