Errors when replacing widgets: "Cannot apply patch to %s which is not in the document"

I contributed the app, bokeh/examples/app/pivot, which involves dynamic replacement of both widgets and plots via the children variable of a bokeh.layouts.widgetbox and a bokeh.layouts.column, respectively. When replacing the widgets within the widgetbox, I’m seeing a flood of errors of the form “Cannot apply patch to %s which is not in the document”, which also seems to slow down the re-rendering of the plots and widgets. See the attached images of the command prompt and javascript console.

Steps that I took to produce this issue:

  1. Pull latest Bokeh git repo: GitHub - bokeh/bokeh: Interactive Data Visualization in the browser, from Python
  2. Copy “US_electric_power_generation.csv” from “bokeh/examples/app/pivot/csv/” and rename copy as “US_electric_power_generation2.csv”. Place in the same folder.
  3. launch “pivot” example app, e.g: bokeh serve --show bokeh/examples/app/pivot
  4. In Data Source widget (upper left), replace “US_electric_power_generation.csv” with “US_electric_power_generation2.csv”
  5. Note the errors in the command prompt/terminal: RuntimeError(‘Cannot apply patch to … which is not in the document’)
  6. Also note errors in the javascript console: “Unhandled ERROR reply to …: RuntimeError(‘Cannot apply patch to … which is not in the document’,)”

Here’s my setup:

  • Windows 7 Enterprise
  • Google Chrome 57.0.2987.133 (64-bit)
  • bokeh 0.12.5 py27_0
  • python 2.7.13

Bryan Van de ven noticed the same issue when reviewing the app: Add example app: pivot chart maker by mmowers · Pull Request #5894 · bokeh/bokeh · GitHub

This issue also looks like it may be relevant: Add new child to existing column · Issue #5518 · bokeh/bokeh · GitHub

Let me know if this should be a git issue and I’ll make one.

Thanks!

Matt,

I'd like to make sure we look at this for 0.12.6 can you make a new issue so it can be tracked on the milestone?

Thanks,

Bryan

···

On May 10, 2017, at 01:08, Matt Mowers <[email protected]> wrote:

I contributed the app, bokeh/examples/app/pivot, which involves dynamic replacement of both widgets and plots via the children variable of a bokeh.layouts.widgetbox and a bokeh.layouts.column, respectively. When replacing the widgets within the widgetbox, I'm seeing a flood of errors of the form "Cannot apply patch to %s which is not in the document", which also seems to slow down the re-rendering of the plots and widgets. See the attached images of the command prompt and javascript console.

Steps that I took to produce this issue:
  • Pull latest Bokeh git repo: https://github.com/bokeh/bokeh
  • Copy "US_electric_power_generation.csv" from "bokeh/examples/app/pivot/csv/" and rename copy as "US_electric_power_generation2.csv". Place in the same folder.
  • launch "pivot" example app, e.g: bokeh serve --show bokeh/examples/app/pivot
  • In Data Source widget (upper left), replace "US_electric_power_generation.csv" with "US_electric_power_generation2.csv"
  • Note the errors in the command prompt/terminal: RuntimeError('Cannot apply patch to ... which is not in the document')
  • Also note errors in the javascript console: "Unhandled ERROR reply to ..: RuntimeError('Cannot apply patch to ... which is not in the document',)"
Here's my setup:
  • Windows 7 Enterprise
  • Google Chrome 57.0.2987.133 (64-bit)
  • bokeh 0.12.5 py27_0
  • python 2.7.13
Bryan Van de ven noticed the same issue when reviewing the app: https://github.com/bokeh/bokeh/pull/5894

This issue also looks like it may be relevant: Add new child to existing column · Issue #5518 · bokeh/bokeh · GitHub

Let me know if this should be a git issue and I'll make one.

Thanks!

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/61551c24-f123-4ad1-ada4-8a5b2c798ceb%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
<Command Prompt Error.PNG><Javascript console error.PNG>

FYI this appears to all be fixed by the just merged layout PR

Bryan

···

On May 26, 2017, at 21:23, Bryan Van de ven <[email protected]> wrote:

Matt,

I'd like to make sure we look at this for 0.12.6 can you make a new issue so it can be tracked on the milestone?

Thanks,

Bryan

On May 10, 2017, at 01:08, Matt Mowers <[email protected]> wrote:

I contributed the app, bokeh/examples/app/pivot, which involves dynamic replacement of both widgets and plots via the children variable of a bokeh.layouts.widgetbox and a bokeh.layouts.column, respectively. When replacing the widgets within the widgetbox, I'm seeing a flood of errors of the form "Cannot apply patch to %s which is not in the document", which also seems to slow down the re-rendering of the plots and widgets. See the attached images of the command prompt and javascript console.

Steps that I took to produce this issue:
  • Pull latest Bokeh git repo: https://github.com/bokeh/bokeh
  • Copy "US_electric_power_generation.csv" from "bokeh/examples/app/pivot/csv/" and rename copy as "US_electric_power_generation2.csv". Place in the same folder.
  • launch "pivot" example app, e.g: bokeh serve --show bokeh/examples/app/pivot
  • In Data Source widget (upper left), replace "US_electric_power_generation.csv" with "US_electric_power_generation2.csv"
  • Note the errors in the command prompt/terminal: RuntimeError('Cannot apply patch to ... which is not in the document')
  • Also note errors in the javascript console: "Unhandled ERROR reply to ..: RuntimeError('Cannot apply patch to ... which is not in the document',)"
Here's my setup:
  • Windows 7 Enterprise
  • Google Chrome 57.0.2987.133 (64-bit)
  • bokeh 0.12.5 py27_0
  • python 2.7.13
Bryan Van de ven noticed the same issue when reviewing the app: https://github.com/bokeh/bokeh/pull/5894

This issue also looks like it may be relevant: Add new child to existing column · Issue #5518 · bokeh/bokeh · GitHub

Let me know if this should be a git issue and I'll make one.

Thanks!

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/61551c24-f123-4ad1-ada4-8a5b2c798ceb%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
<Command Prompt Error.PNG><Javascript console error.PNG>

Thanks much Bryan!

···

On Friday, June 9, 2017 at 9:19:32 PM UTC-4, Bryan Van de ven wrote:

FYI this appears to all be fixed by the just merged layout PR

Bryan

On May 26, 2017, at 21:23, Bryan Van de ven [email protected] wrote:

Matt,

I’d like to make sure we look at this for 0.12.6 can you make a new issue so it can be tracked on the milestone?

Thanks,

Bryan

On May 10, 2017, at 01:08, Matt Mowers [email protected] wrote:

I contributed the app, bokeh/examples/app/pivot, which involves dynamic replacement of both widgets and plots via the children variable of a bokeh.layouts.widgetbox and a bokeh.layouts.column, respectively. When replacing the widgets within the widgetbox, I’m seeing a flood of errors of the form “Cannot apply patch to %s which is not in the document”, which also seems to slow down the re-rendering of the plots and widgets. See the attached images of the command prompt and javascript console.

Steps that I took to produce this issue:

    • Pull latest Bokeh git repo: [https://github.com/bokeh/bokeh](https://github.com/bokeh/bokeh)
    • Copy "US_electric_power_generation.csv" from "bokeh/examples/app/pivot/csv/" and rename copy as "US_electric_power_generation2.csv". Place in the same folder.
    • launch "pivot" example app, e.g: bokeh serve --show bokeh/examples/app/pivot
    • In Data Source widget (upper left), replace "US_electric_power_generation.csv" with "US_electric_power_generation2.csv"
    • Note the errors in the command prompt/terminal: RuntimeError('Cannot apply patch to ... which is not in the document')
    • Also note errors in the javascript console: "Unhandled ERROR reply to ..: RuntimeError('Cannot apply patch to ... which is not in the document',)"

Here’s my setup:

    • Windows 7 Enterprise
    • Google Chrome 57.0.2987.133 (64-bit)
    • bokeh 0.12.5 py27_0
    • python 2.7.13

Bryan Van de ven noticed the same issue when reviewing the app: https://github.com/bokeh/bokeh/pull/5894

This issue also looks like it may be relevant: https://github.com/bokeh/bokeh/issues/5518

Let me know if this should be a git issue and I’ll make one.

Thanks!


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/61551c24-f123-4ad1-ada4-8a5b2c798ceb%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.