This would work for the first time, meaning the above code will display a dropdown, if i select a page name from the dropdown it will print the visuals of that page. But second time if I change the value in the dropdown it won't work. It won't throw any error messages. But after this behaviour, no code will run in the jupyter nook page, I have to restart the kernal.
I tried the same thing using observe event on the dropdown widget, but the same behaviour.
If I do some other operation inside the interact/observe callback function other than invoking methods from powerbiclient's report class, it will perfectly work.
According to your description, it seems that it does not work properly when switching report pages. Please refer to the content in the link below and try to change the way to get the report page. See later if you can make it work properly.