addressing https://github.com/ContinuumIO/bokeh/issues/697