Gridplot bug

Hi,

I have recently started using Bokeh and it is a very impressive tool.

I think I have found a bug in Bokeh whilst experimenting with the gridplot command, From Jupyter, I get the following error message:

Javascript error adding output!

Error: duplicate edit variable: _height 7a9ef649-8625-410c-bcbc-2cdf6f9b89ae

See your browser Javascript console for more details.

I have attached a sample Jupyter Notebook which demonstrates this. All inline plotting fails after this first error message is first created unless I rerun the output_notebook() command. It appears that I cannot plot the same figure twice when using the ‘gridplot’ method.

Is anyone able to reproduce this error?

Cheers, DougR

Windows 7

Bokeh: v12.5

Jupyter: 5.0.0

Chrome Browser

Bokeh1_in_Jupyter_bug.ipynb (52.1 KB)

Hi,

It's not the grid plot, you are running into this:

  https://github.com/bokeh/bokeh/issues/1650

because you are using the same plot twice in one document.

Thanks,

Bryan

···

On May 18, 2017, at 08:03, [email protected] wrote:

Hi,

I have recently started using Bokeh and it is a very impressive tool.

I think I have found a bug in Bokeh whilst experimenting with the gridplot command, From Jupyter, I get the following error message:

Javascript error adding output!
Error: duplicate edit variable: _height 7a9ef649-8625-410c-bcbc-2cdf6f9b89ae
See your browser Javascript console for more details.

I have attached a sample Jupyter Notebook which demonstrates this. All inline plotting fails after this first error message is first created unless I rerun the output_notebook() command. It appears that I cannot plot the same figure twice when using the 'gridplot' method.

Is anyone able to reproduce this error?

Cheers, DougR

Windows 7
Bokeh: v12.5
Jupyter: 5.0.0
Chrome Browser

--
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/f56b8c8b-cade-4939-a7a9-daa1755b2807%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<Bokeh1_in_Jupyter_bug.ipynb>

Bryan,

Thanks for the quick response and link to the issue. Its good to know that the problem I had is already being tracked. I failed to spot it when I googled it.

DougR

···

On Thursday, May 18, 2017 at 2:54:09 PM UTC+1, Bryan Van de ven wrote:

Hi,

It’s not the grid plot, you are running into this:

    [https://github.com/bokeh/bokeh/issues/1650](https://github.com/bokeh/bokeh/issues/1650)

because you are using the same plot twice in one document.

Thanks,

Bryan

On May 18, 2017, at 08:03, [email protected] wrote:

Hi,

I have recently started using Bokeh and it is a very impressive tool.

I think I have found a bug in Bokeh whilst experimenting with the gridplot command, From Jupyter, I get the following error message:

Javascript error adding output!

Error: duplicate edit variable: _height 7a9ef649-8625-410c-bcbc-2cdf6f9b89ae

See your browser Javascript console for more details.

I have attached a sample Jupyter Notebook which demonstrates this. All inline plotting fails after this first error message is first created unless I rerun the output_notebook() command. It appears that I cannot plot the same figure twice when using the ‘gridplot’ method.

Is anyone able to reproduce this error?

Cheers, DougR

Windows 7

Bokeh: v12.5

Jupyter: 5.0.0

Chrome Browser


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/f56b8c8b-cade-4939-a7a9-daa1755b2807%40continuum.io.

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

<Bokeh1_in_Jupyter_bug.ipynb>

Well, just to be clear, the resolution to that issue may end up being "wont fix" or "invalid". It's not clear at all to me what a real, actual use-case for including the exact same plot twice in one document could be. In which case it's hard to justify effort to "fix" a non-problem. However, if you have a justification for why it would ever be reasonable to include the same plot object twice in a real situation, please comment in the issue.

Bryan

···

On May 18, 2017, at 09:20, DougR <[email protected]> wrote:

Bryan,

Thanks for the quick response and link to the issue. Its good to know that the problem I had is already being tracked. I failed to spot it when I googled it.

DougR

On Thursday, May 18, 2017 at 2:54:09 PM UTC+1, Bryan Van de ven wrote:
Hi,

It's not the grid plot, you are running into this:

        https://github.com/bokeh/bokeh/issues/1650

because you are using the same plot twice in one document.

Thanks,

Bryan

> On May 18, 2017, at 08:03, [email protected] wrote:
>
> Hi,
>
> I have recently started using Bokeh and it is a very impressive tool.
>
> I think I have found a bug in Bokeh whilst experimenting with the gridplot command, From Jupyter, I get the following error message:
>
> Javascript error adding output!
> Error: duplicate edit variable: _height 7a9ef649-8625-410c-bcbc-2cdf6f9b89ae
> See your browser Javascript console for more details.
>
> I have attached a sample Jupyter Notebook which demonstrates this. All inline plotting fails after this first error message is first created unless I rerun the output_notebook() command. It appears that I cannot plot the same figure twice when using the 'gridplot' method.
>
> Is anyone able to reproduce this error?
>
> Cheers, DougR
>
> Windows 7
> Bokeh: v12.5
> Jupyter: 5.0.0
> Chrome Browser
>
> --
> 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/f56b8c8b-cade-4939-a7a9-daa1755b2807%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
> <Bokeh1_in_Jupyter_bug.ipynb>

--
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/a08f1e06-be65-4a1b-8f1b-2930137e0b79%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

I’m not sure that there is a need to have the same figure in a document. The issue I had was the persistent error messages, even when running valid commands, after I made the mistake of putting 1 figure in a gridplot twice. Restarting the Jupyter kernel or running the “output_notebook()” command fixed the issue. Please see attached Jupyter Notebook which better describes this scenario.

Doug

Bokeh1_in_Jupyter_bug2.ipynb (87 KB)

···

On Thursday, May 18, 2017 at 2:27:59 PM UTC+1, DougR wrote:

Hi,

I have recently started using Bokeh and it is a very impressive tool.

I think I have found a bug in Bokeh whilst experimenting with the gridplot command, From Jupyter, I get the following error message:

Javascript error adding output!

Error: duplicate edit variable: _height 7a9ef649-8625-410c-bcbc-2cdf6f9b89ae

See your browser Javascript console for more details.

I have attached a sample Jupyter Notebook which demonstrates this. All inline plotting fails after this first error message is first created unless I rerun the output_notebook() command. It appears that I cannot plot the same figure twice when using the ‘gridplot’ method.

Is anyone able to reproduce this error?

Cheers, DougR

Windows 7

Bokeh: v12.5

Jupyter: 5.0.0

Chrome Browser

Understood. The Notebook+Bokeh is a giant pile of interlocking state spread across two runtimes. There are situations that just cannot be gracefully recovered from without restarting. Perhaps the best resolution for that issue would be a giant red validation warning if a model is duplicated in a document (that's simple to do).

Thanks,

Bryan

···

On May 19, 2017, at 09:32, DougR <[email protected]> wrote:

I'm not sure that there is a need to have the same figure in a document. The issue I had was the persistent error messages, even when running valid commands, after I made the mistake of putting 1 figure in a gridplot twice. Restarting the Jupyter kernel or running the "output_notebook()" command fixed the issue. Please see attached Jupyter Notebook which better describes this scenario.

Doug

On Thursday, May 18, 2017 at 2:27:59 PM UTC+1, DougR wrote:
Hi,

I have recently started using Bokeh and it is a very impressive tool.

I think I have found a bug in Bokeh whilst experimenting with the gridplot command, From Jupyter, I get the following error message:

Javascript error adding output!
Error: duplicate edit variable: _height 7a9ef649-8625-410c-bcbc-2cdf6f9b89ae
See your browser Javascript console for more details.

I have attached a sample Jupyter Notebook which demonstrates this. All inline plotting fails after this first error message is first created unless I rerun the output_notebook() command. It appears that I cannot plot the same figure twice when using the 'gridplot' method.

Is anyone able to reproduce this error?

Cheers, DougR

Windows 7
Bokeh: v12.5
Jupyter: 5.0.0
Chrome Browser

--
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/ee885881-1262-4fbf-84de-2cf41ed9a622%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<Bokeh1_in_Jupyter_bug2.ipynb>