https://github.com/ContinuumIO/bokeh/issues/595