Update dropdown menu dynamically in plotly python api

How to update dropdown menu dynamicly. Like when a dropdown is selected another dropdown option will change according to the first selection. I know it can be done using Dash but I want to implement it in plotly python API.

Is there a way to upvote this? I too am curious about how to do this.