FileSelector modify path via ObjectSelector - dropdown list does not change

You should reference the parameter as a string and then you probably want to make an instance, e.g.:

    @pn.depends('location0', watch=True)
    def update_location0(self):
        self.param.file0.path = update_location(self.location0)
        self.param.file0.update()

...
example = Example()

pn.panel(pn.Column(
    '# Data visualiser',
    example.param.location0,
    example.param.file0,
    update_graphs)
).servable()

b. I have added trigger based on what I saw in other code, but it won’t trigger on an integer, so I added the string strigger. Ugly. This is not an issue when I amke all the functions paret of the class.

This is a bug because .trigger is a method on the keyword, an issue on param to address this would be appreciated. For now you can get around it by calling your parameter something other than trigger.