var all_models = {{ all_models }};
var modelid = "{{ modelid }}";
var modeltype = "{{ modeltype }}";
var elementid = "{{ elementid }}";
var view;
console.log(modelid, modeltype, elementid);
Bokeh.load_models(all_models);
var model = Bokeh.Collections(modeltype).get(modelid)
window.model=model;
var view = new model.default_view(
    {model : model}
);
window.view = view;
_.delay(function(){
    $('#{{ elementid }}').append(view.$el)
}, 1000);
