Memory overflows when streaming data using Bokeh push_notebook()
Question: It seems that there is a memory leak when calling push_notebook() for
streaming data to a Bokeh plot in an IPython notebook. You can reproduce it
with the following code in an IPython notebook cell:

    
    
    from bokeh.plotting import *
    import numpy as np
    
    output_notebook()
    
    x = np.linspace(0., 1000., 1000)
    p = figure()
    hold()
    p.line(x = x, y = np.sin(x), name = 'y')
    
    def update():
        renderer = p.select(dict(name='y'))
        ds = renderer[0].data_source
        ds.data['y'] = np.sin(a * x)
        ds.push_notebook()
    
    show(p)
    
    a = 1.
    while True:
        update()
        a *= 1.1
    

Not sure if it's supposed to be used that way though.


Answer: There is a bug listed here for this issue.
<https://github.com/bokeh/bokeh/issues/1732>

