RuntimeError: Models must be owned by only a single document (Bokeh 0.12.3) on refresh

I’ve run into that error with Jupyter notebooks, though with a non-server Bokeh server application. The workaround I’ve found is restarting the kernel. It seemed like it might have to do with assigning a plot to a variable in one frame and assigning glyphs and calling show in separate frames, and running cells out of order.