Dynamic Sidebar in Pyshiny

I am working on a project using pyshiny. I'm using a sidebar layout with navigation tabs in the main panel. I'd like to make it so that the contents of the sidebar update when a new tab of the navbar is selected, but haven't been able to figure out how to do this. I know it's possible in shiny for R, but haven't seen it done in python. Does anyone know if it's possible and if so how to accomplish this? Thanks!