Bokeh Serve - Adding new plots to an existing document

Hi

I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).

in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don’t show up in the browser.

I am getting the following error in the browser as well:

Got an event for unknown model Object {subtype: “Figure”, type: “Plot”, id: “83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b”}

Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.

Thanks

Hi Vidy,

I think this should be possible, but it might be something that is too easy to do "wrong" that we should give warnings or better feedback about. It's hard to say for sure without details though, can you share some of the code to show what you have actually tried?

Thanks,

Bryan

···

On Apr 20, 2016, at 1:50 AM, Vidy M <[email protected]> wrote:

Hi

I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).

in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don't show up in the browser.

I am getting the following error in the browser as well:

Got an event for unknown model Object {subtype: "Figure", type: "Plot", id: "83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b"}

Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.

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] <mailto:[email protected]>.
To post to this group, send email to [email protected] <mailto:[email protected]>.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io <https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan

I have posted my code here: http://pastebin.com/gfiZvwRk . Let me know if I can provide you with more information.

Thanks for looking into this.

Vidy

···

On Wednesday, April 20, 2016 at 10:16:52 PM UTC+5:30, Bryan Van de ven wrote:

Hi Vidy,

I think this should be possible, but it might be something that is too easy to do “wrong” that we should give warnings or better feedback about. It’s hard to say for sure without details though, can you share some of the code to show what you have actually tried?

Thanks,

Bryan

On Apr 20, 2016, at 1:50 AM, Vidy M [email protected] wrote:

Hi

I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).

in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don’t show up in the browser.

I am getting the following error in the browser as well:

Got an event for unknown model Object {subtype: “Figure”, type: “Plot”, id: “83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b”}

Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.

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] mailto:[email protected].

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

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io <https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io?utm_medium=email&utm_source=footer>.

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

As a first suggestion, try this: add a single layout (HBox or VBox) to the document (one time) with curdoc().add_root, and then subsequently, change out the .children property of the layout box, something like:

  toplevel.children = [HBox(inputs, graphs)]

I think that might work better. Note I think you probably want to use Hbox instead of hplot. This is some clumsiness in the API that we will be fixing in the next release.

Bryan

···

On Apr 20, 2016, at 1:36 PM, Vidy M <[email protected]> wrote:

Hi Bryan

I have posted my code here: http://pastebin.com/gfiZvwRk . Let me know if I can provide you with more information.

Thanks for looking into this.
Vidy

On Wednesday, April 20, 2016 at 10:16:52 PM UTC+5:30, Bryan Van de ven wrote:
Hi Vidy,

I think this should be possible, but it might be something that is too easy to do "wrong" that we should give warnings or better feedback about. It's hard to say for sure without details though, can you share some of the code to show what you have actually tried?

Thanks,

Bryan

> On Apr 20, 2016, at 1:50 AM, Vidy M <[email protected]> wrote:
>
> Hi
>
> I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).
>
> in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don't show up in the browser.
>
> I am getting the following error in the browser as well:
>
> Got an event for unknown model Object {subtype: "Figure", type: "Plot", id: "83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b"}
>
> Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.
>
> 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] <mailto:[email protected]>.
> To post to this group, send email to [email protected] <mailto:[email protected]>.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io <https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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/d75a6ca2-956e-4dc9-b2a7-2443e50b1b17%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan

We did something very similar to what you suggested to get it to work. That does work but still results in some errors on the javascript side ( same as earlier about the document not knowing about certain models).

Wondering if there is a cleaner approach to doing this.

Thanks

···

On Thursday, April 21, 2016 at 12:21:40 AM UTC+5:30, Bryan Van de ven wrote:

As a first suggestion, try this: add a single layout (HBox or VBox) to the document (one time) with curdoc().add_root, and then subsequently, change out the .children property of the layout box, something like:

    toplevel.children = [HBox(inputs, graphs)]

I think that might work better. Note I think you probably want to use Hbox instead of hplot. This is some clumsiness in the API that we will be fixing in the next release.

Bryan

On Apr 20, 2016, at 1:36 PM, Vidy M [email protected] wrote:

Hi Bryan

I have posted my code here: http://pastebin.com/gfiZvwRk . Let me know if I can provide you with more information.

Thanks for looking into this.
Vidy

On Wednesday, April 20, 2016 at 10:16:52 PM UTC+5:30, Bryan Van de ven wrote:

Hi Vidy,

I think this should be possible, but it might be something that is too easy to do “wrong” that we should give warnings or better feedback about. It’s hard to say for sure without details though, can you share some of the code to show what you have actually tried?

Thanks,

Bryan

On Apr 20, 2016, at 1:50 AM, Vidy M [email protected] wrote:

Hi

I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).

in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don’t show up in the browser.

I am getting the following error in the browser as well:

Got an event for unknown model Object {subtype: “Figure”, type: “Plot”, id: “83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b”}

Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.

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] mailto:[email protected].
To post to this group, send email to [email protected] mailto:[email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io <https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/continuum.io/d/optout <https://groups.google.com/a/continuum.io/d/optout>.


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/d75a6ca2-956e-4dc9-b2a7-2443e50b1b17%40continuum.io.

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

Vidy,

To be clear it works, but the only problem is the messages reported on the console? Then I'd suggest filing a GitHub issue with as much information as possible. Certainly we'd like to clean things up, but if it is working for you apart from a few console messages it's probably not going to be able to be made an immediate priority.

Bryan

···

On Apr 20, 2016, at 2:11 PM, Vidy M <[email protected]> wrote:

Hi Bryan

We did something very similar to what you suggested to get it to work. That does work but still results in some errors on the javascript side ( same as earlier about the document not knowing about certain models).

Wondering if there is a cleaner approach to doing this.

Thanks

On Thursday, April 21, 2016 at 12:21:40 AM UTC+5:30, Bryan Van de ven wrote:
As a first suggestion, try this: add a single layout (HBox or VBox) to the document (one time) with curdoc().add_root, and then subsequently, change out the .children property of the layout box, something like:

        toplevel.children = [HBox(inputs, graphs)]

I think that might work better. Note I think you probably want to use Hbox instead of hplot. This is some clumsiness in the API that we will be fixing in the next release.

Bryan

> On Apr 20, 2016, at 1:36 PM, Vidy M <[email protected]> wrote:
>
> Hi Bryan
>
> I have posted my code here: http://pastebin.com/gfiZvwRk . Let me know if I can provide you with more information.
>
> Thanks for looking into this.
> Vidy
>
> On Wednesday, April 20, 2016 at 10:16:52 PM UTC+5:30, Bryan Van de ven wrote:
> Hi Vidy,
>
> I think this should be possible, but it might be something that is too easy to do "wrong" that we should give warnings or better feedback about. It's hard to say for sure without details though, can you share some of the code to show what you have actually tried?
>
> Thanks,
>
> Bryan
>
>
> > On Apr 20, 2016, at 1:50 AM, Vidy M <[email protected]> wrote:
> >
> > Hi
> >
> > I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).
> >
> > in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don't show up in the browser.
> >
> > I am getting the following error in the browser as well:
> >
> > Got an event for unknown model Object {subtype: "Figure", type: "Plot", id: "83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b"}
> >
> > Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.
> >
> > 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] <mailto:[email protected]>.
> > To post to this group, send email to [email protected] <mailto:[email protected]>.
> > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io <https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io?utm_medium=email&utm_source=footer>.
> > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>
>
> --
> 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/d75a6ca2-956e-4dc9-b2a7-2443e50b1b17%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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/a2974cc9-0d53-4f1a-a849-d2f1a92d04bc%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan

Yes. It does work by following something along the lines you had mentioned. I am still trying to understand why we need to do it this way though. Shouldnt any modification to the document on the server side be applied at the client side as well ?

Thanks

···

On Thursday, April 21, 2016 at 2:05:52 AM UTC+5:30, Bryan Van de ven wrote:

Vidy,

To be clear it works, but the only problem is the messages reported on the console? Then I’d suggest filing a GitHub issue with as much information as possible. Certainly we’d like to clean things up, but if it is working for you apart from a few console messages it’s probably not going to be able to be made an immediate priority.

Bryan

On Apr 20, 2016, at 2:11 PM, Vidy M [email protected] wrote:

Hi Bryan

We did something very similar to what you suggested to get it to work. That does work but still results in some errors on the javascript side ( same as earlier about the document not knowing about certain models).

Wondering if there is a cleaner approach to doing this.

Thanks

On Thursday, April 21, 2016 at 12:21:40 AM UTC+5:30, Bryan Van de ven wrote:

As a first suggestion, try this: add a single layout (HBox or VBox) to the document (one time) with curdoc().add_root, and then subsequently, change out the .children property of the layout box, something like:

    toplevel.children = [HBox(inputs, graphs)]

I think that might work better. Note I think you probably want to use Hbox instead of hplot. This is some clumsiness in the API that we will be fixing in the next release.

Bryan

On Apr 20, 2016, at 1:36 PM, Vidy M [email protected] wrote:

Hi Bryan

I have posted my code here: http://pastebin.com/gfiZvwRk . Let me know if I can provide you with more information.

Thanks for looking into this.
Vidy

On Wednesday, April 20, 2016 at 10:16:52 PM UTC+5:30, Bryan Van de ven wrote:
Hi Vidy,

I think this should be possible, but it might be something that is too easy to do “wrong” that we should give warnings or better feedback about. It’s hard to say for sure without details though, can you share some of the code to show what you have actually tried?

Thanks,

Bryan

On Apr 20, 2016, at 1:50 AM, Vidy M [email protected] wrote:

Hi

I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).

in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don’t show up in the browser.

I am getting the following error in the browser as well:

Got an event for unknown model Object {subtype: “Figure”, type: “Plot”, id: “83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b”}

Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.

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] mailto:[email protected].
To post to this group, send email to [email protected] mailto:[email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io <https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/continuum.io/d/optout <https://groups.google.com/a/continuum.io/d/optout>.


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/d75a6ca2-956e-4dc9-b2a7-2443e50b1b17%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/a2974cc9-0d53-4f1a-a849-d2f1a92d04bc%40continuum.io.

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

Vidy,

As I mentioned we are still in the process of cleaning this particular part of the API up in a large ongoing effort. There are both bugs as well as simply some bad API choices. I'm not sure what reason I can provide other than "historical accident we are working to fix."

Bryan

···

On Apr 27, 2016, at 1:43 AM, Vidy M <[email protected]> wrote:

Hi Bryan

Yes. It does work by following something along the lines you had mentioned. I am still trying to understand why we need to do it this way though. Shouldnt any modification to the document on the server side be applied at the client side as well ?

Thanks

On Thursday, April 21, 2016 at 2:05:52 AM UTC+5:30, Bryan Van de ven wrote:
Vidy,

To be clear it works, but the only problem is the messages reported on the console? Then I'd suggest filing a GitHub issue with as much information as possible. Certainly we'd like to clean things up, but if it is working for you apart from a few console messages it's probably not going to be able to be made an immediate priority.

Bryan

> On Apr 20, 2016, at 2:11 PM, Vidy M <[email protected]> wrote:
>
> Hi Bryan
>
> We did something very similar to what you suggested to get it to work. That does work but still results in some errors on the javascript side ( same as earlier about the document not knowing about certain models).
>
> Wondering if there is a cleaner approach to doing this.
>
> Thanks
>
>
>
> On Thursday, April 21, 2016 at 12:21:40 AM UTC+5:30, Bryan Van de ven wrote:
> As a first suggestion, try this: add a single layout (HBox or VBox) to the document (one time) with curdoc().add_root, and then subsequently, change out the .children property of the layout box, something like:
>
> toplevel.children = [HBox(inputs, graphs)]
>
> I think that might work better. Note I think you probably want to use Hbox instead of hplot. This is some clumsiness in the API that we will be fixing in the next release.
>
> Bryan
>
>
>
>
> > On Apr 20, 2016, at 1:36 PM, Vidy M <[email protected]> wrote:
> >
> > Hi Bryan
> >
> > I have posted my code here: http://pastebin.com/gfiZvwRk . Let me know if I can provide you with more information.
> >
> > Thanks for looking into this.
> > Vidy
> >
> > On Wednesday, April 20, 2016 at 10:16:52 PM UTC+5:30, Bryan Van de ven wrote:
> > Hi Vidy,
> >
> > I think this should be possible, but it might be something that is too easy to do "wrong" that we should give warnings or better feedback about. It's hard to say for sure without details though, can you share some of the code to show what you have actually tried?
> >
> > Thanks,
> >
> > Bryan
> >
> >
> > > On Apr 20, 2016, at 1:50 AM, Vidy M <[email protected]> wrote:
> > >
> > > Hi
> > >
> > > I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).
> > >
> > > in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don't show up in the browser.
> > >
> > > I am getting the following error in the browser as well:
> > >
> > > Got an event for unknown model Object {subtype: "Figure", type: "Plot", id: "83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b"}
> > >
> > > Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.
> > >
> > > 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] <mailto:[email protected]>.
> > > To post to this group, send email to [email protected] <mailto:[email protected]>.
> > > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io <https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io?utm_medium=email&utm_source=footer>.
> > > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
> >
> >
> > --
> > 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/d75a6ca2-956e-4dc9-b2a7-2443e50b1b17%40continuum.io.
> > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>
>
> --
> 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/a2974cc9-0d53-4f1a-a849-d2f1a92d04bc%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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/b2c43a22-dc97-4285-b468-a2a74b815b25%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Bryan

Thanks. That clarifies the situation. I wanted to make sure I wasn’t doing anything that went against Bokeh’s principles.

Thanks

···

On Wednesday, April 27, 2016 at 10:01:05 PM UTC+5:30, Bryan Van de ven wrote:

Vidy,

As I mentioned we are still in the process of cleaning this particular part of the API up in a large ongoing effort. There are both bugs as well as simply some bad API choices. I’m not sure what reason I can provide other than “historical accident we are working to fix.”

Bryan

On Apr 27, 2016, at 1:43 AM, Vidy M [email protected] wrote:

Hi Bryan

Yes. It does work by following something along the lines you had mentioned. I am still trying to understand why we need to do it this way though. Shouldnt any modification to the document on the server side be applied at the client side as well ?

Thanks

On Thursday, April 21, 2016 at 2:05:52 AM UTC+5:30, Bryan Van de ven wrote:

Vidy,

To be clear it works, but the only problem is the messages reported on the console? Then I’d suggest filing a GitHub issue with as much information as possible. Certainly we’d like to clean things up, but if it is working for you apart from a few console messages it’s probably not going to be able to be made an immediate priority.

Bryan

On Apr 20, 2016, at 2:11 PM, Vidy M [email protected] wrote:

Hi Bryan

We did something very similar to what you suggested to get it to work. That does work but still results in some errors on the javascript side ( same as earlier about the document not knowing about certain models).

Wondering if there is a cleaner approach to doing this.

Thanks

On Thursday, April 21, 2016 at 12:21:40 AM UTC+5:30, Bryan Van de ven wrote:
As a first suggestion, try this: add a single layout (HBox or VBox) to the document (one time) with curdoc().add_root, and then subsequently, change out the .children property of the layout box, something like:

    toplevel.children = [HBox(inputs, graphs)]

I think that might work better. Note I think you probably want to use Hbox instead of hplot. This is some clumsiness in the API that we will be fixing in the next release.

Bryan

On Apr 20, 2016, at 1:36 PM, Vidy M [email protected] wrote:

Hi Bryan

I have posted my code here: http://pastebin.com/gfiZvwRk . Let me know if I can provide you with more information.

Thanks for looking into this.
Vidy

On Wednesday, April 20, 2016 at 10:16:52 PM UTC+5:30, Bryan Van de ven wrote:
Hi Vidy,

I think this should be possible, but it might be something that is too easy to do “wrong” that we should give warnings or better feedback about. It’s hard to say for sure without details though, can you share some of the code to show what you have actually tried?

Thanks,

Bryan

On Apr 20, 2016, at 1:50 AM, Vidy M [email protected] wrote:

Hi

I am using bokeh version 0.11.1 and I am running a notebook using bokeh serve ( eg. bokeh serve --port 8080 my_notebook.py ).

in my python file, I am first rendering a text box and a button. Based on the input entered into the text box , and on click of the button , I need to show different graphs to the user. I have a handler method associated with button click and it is getting called in the backend and I add all the plots as neccessary. However these plots don’t show up in the browser.

I am getting the following error in the browser as well:

Got an event for unknown model Object {subtype: “Figure”, type: “Plot”, id: “83eedeb7-04fa-4ef0-af0f-f8fdae7a8b2b”}

Does this mean that all the plots should have been created upfront when the page is first accessed ? What are my options.

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] mailto:[email protected].
To post to this group, send email to [email protected] mailto:[email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io <https://groups.google.com/a/continuum.io/d/msgid/bokeh/7abbbbf0-8c21-4f00-9fd8-be4acb0aec15%40continuum.io?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/continuum.io/d/optout <https://groups.google.com/a/continuum.io/d/optout>.


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/d75a6ca2-956e-4dc9-b2a7-2443e50b1b17%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/a2974cc9-0d53-4f1a-a849-d2f1a92d04bc%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/b2c43a22-dc97-4285-b468-a2a74b815b25%40continuum.io.

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