Is there a branch with a working example that can be looked at?
https://github.com/bokeh/bokeh/pull/3867
https://github.com/Anaconda-Platform/nbpresent/pull/16/commits/57031ee71a0b524e2c8a96bd44edc9b653e2a890