example in the use of reset_output()? plot not resetting

I have a problem that when updating a plot on Bokeh, the new plot overlays the original plot. The previous plot does not clear.
This issue has been discussed and the developers have suggested using “reset_output()”. However ,this is not working for me. Is there any example of this working? Maybe I’m not using it correctly.