☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Models must be owned by only a single document, ColumnDataSource(id='1196', ...) is already in a doc

Community Support
Meruyert_Mustafa
Meruyert_Mustafa

Hello. I am trying to output table in jupyter notebook.Following is my code

df = pd.DataFrame(lst, columns=['date_','type','name','amount','id','yearmonth'])
source = ColumnDataSource(df)
columns = [
        TableColumn(field="date_", title="Date", formatter=DateFormatter()),
        TableColumn(field="type", title="Type"),
        TableColumn(field="name", title="Name"),
        TableColumn(field="amount", title="Amount")
]
data_table = DataTable(source=source, columns=columns, width=400, height=280)
show(data_table)

show(data_table) return next error:

RuntimeError: Models must be owned by only a single document, ColumnDataSource(id='1196', ...) is already in a doc

How to solve it?

⌁   Link to post
JohannesFischer
JohannesFischer

I just encountered a similiar problem (RuntimeError: Models must be owned by only a single document, …).
My problem was, that I tried to call the same show() command on two occasions with the same data.
Maybe that helps :slight_smile:

⌁   Link to post

End of archived discussion · Replies are disabled