I get this error when i try to run your full example with the only change that i use json_item instead of save:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-107-4f70c56c7c2f> in <module>
82
83 layout = column(slider, plot)
---> 84 json_item([idle_doc_observer, layout])
~/anaconda3/lib/python3.7/site-packages/bokeh/embed/standalone.py in json_item(model, target, theme)
366
367 '''
--> 368 with OutputDocumentFor([model], apply_theme=theme) as doc:
369 doc.title = ""
370 docs_json = standalone_docs_json([model])
~/anaconda3/lib/python3.7/contextlib.py in __enter__(self)
110 del self.args, self.kwds, self.func
111 try:
--> 112 return next(self.gen)
113 except StopIteration:
114 raise RuntimeError("generator didn't yield") from None
~/anaconda3/lib/python3.7/site-packages/bokeh/embed/util.py in OutputDocumentFor(objs, apply_theme, always_new)
116
117 if not isinstance(objs, Sequence) or len(objs) == 0 or not all(isinstance(x, Model) for x in objs):
--> 118 raise ValueError("OutputDocumentFor expects a sequence of Models")
119
120 def finish(): pass
ValueError: OutputDocumentFor expects a sequence of Models
Do you know how this could be fixed?