Traceback (most recent call last):


 "/Users/texot/anaconda3/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute

result = yield result


 "/Users/texot/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run

value = future.result()


 "/Users/texot/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run

yielded = self.gen.throw(*exc_info)


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/server/views/autoload_js_handler.py", line 60, in get

session = yield self.get_session()


 "/Users/texot/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run

value = future.result()


 "/Users/texot/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run

yielded = self.gen.throw(*exc_info)


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/server/views/session_handler.py", line 77, in get_session

session = yield self.application_context.create_session_if_needed(session_id, self.request)


 "/Users/texot/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run

value = future.result()


 "/Users/texot/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run

yielded = self.gen.send(value)


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/server/contexts.py", line 215, in create_session_if_needed

self._application.initialize_document(doc)


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/application/application.py", line 178, in initialize_document

h.modify_document(doc)


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/application/handlers/function.py", line 133, in modify_document

self._func(doc)


 "<ipython-input-1-dfd207c7ef75>", line 14, in modify_doc

doc.add_root(mylayout)


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/document/document.py", line 304, in add_root

self._pop_all_models_freeze()


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/document/document.py", line 1018, in _pop_all_models_freeze

self._recompute_all_models()


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/document/document.py", line 1041, in _recompute_all_models

a._attach_document(self)


 "/Users/texot/anaconda3/lib/python3.6/site-packages/bokeh/model.py", line 609, in _attach_document

raise RuntimeError("Models must be owned by only a single document, %r is already in a doc" % (self))
RuntimeError: Models must be owned by only a single document, Column(id='1004', ...) is already in a doc

Traceback (most recent call last):


 "C:\spark\spark-2.3.4-bin-hadoop2.7\python\lib\py4j-0.10.7-src.zip\py4j\java_gateway.py", line 929, in _get_connection
IndexError: pop from an empty deque
