Add new child to existing column
See original GitHub issueWhen adding a child plot to an existing column and then updating the plot appears but then I get the following error:
bokeh.server.protocol.server_handler - ERROR - error handling message Message 'PATCH-DOC' (revision 1): RuntimeError('Cannot apply patch to 8cf5ddd0-9b96-49fc-8099-c792733d0ff5 which is not in the document',)
And my figures come out wonky:
def __init__(...):
...
self.sizing_mode = 'scale_width'
self.figures = {}
self.sources = {}
self.root = column(sizing_mode=self.sizing_mode)
def add_figure(self, name):
source = ColumnDataSource({'x': [], 'y': []})
fig = figure(title=name, tools='', height=150, sizing_mode=self.sizing_mode)
fig.line(source=source, x='x', y='y')
self.sources[name] = source
self.figures[name] = fig
self.root.children = self.root.children + [fig]
def update(self):
for name, counter in self.server.counters.items():
if name not in self.figures:
self.add_figure(name)
else:
xs = [counter.quantile(i / 100) for i in range(101)]
ys = [xs[i + 1] - xs[i] for i in range(len(xs) - 1)]
self.sources[name].data.update({'x': xs, 'y': ys})
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (15 by maintainers)
Top Results From Across the Web
Adding an identity to an existing column - Stack Overflow
Create a new column with identity & drop the existing column. Approach 1. (New table) Here you can retain the existing data values...
Read more >Creating a Relationship - how to migrate a PK Column as an ...
If you need to merge it with an existing Column in the Child Table, you can Right Mouse Click on the Relationship and,...
Read more >How to Add A New Column to a Table in SQL?
In Object-Explorer, right-click on the table to which you want to add new columns in a specific order. Click the first blank cell...
Read more >SQL PRIMARY KEY: How to Create & Add to Existing Table
This tutorial covers SQL Primary Key definitions, rules, How to add a primary key to an existing table in SQL, interesting facts, and...
Read more >How do I add an FK to an existing column - SqlDBM Support
To connect two table, tool creates new FK column in child table, this is done deliberately to avoid any mistakes by the user....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the test case, just FYI resolving this is one of my top two priorities for
0.12.5
I’m also experiencing this issue.
My version of python and bokeh:
This is a simplified version of the
main.py
that creates the error.Only occurs when
query_prop_data
is called (by clicking the Button)I start up my server with
$bokeh serve --show bokehtest
Each time the query button is clicked I get four lines like this:
Not sure if this is a code issue on my part or a bug. Hope that helps!