☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

reset_output() not working

Community Support
Kevin_Crispie
Kevin_Crispie

Hello, I have a similar problem to this, where my output from a bokeh program shows all the graphs that I have ever produced using this code, appending the newest one at the very bottom. I’m using bokeh with anaconda and sublime, and running it in terminal. I’ve attached the .py file.

I’m trying to figure out how to edit the button feature effectively. I’m interested in doing something like the stock ticker example (which I haven’t been able to get working since I’m not in an iPython notebook). I have my own candlestick plots that I want to toggle between. Figuring out how these buttons work is the first step.

Thank you,

Kevin Crispie

plot_test2.py (2.52 KB)

⌁   Link to post
Bryan
Bryan

Kevin,

This appears to be a regression. I have created a GH bug issue you can track here:

  running server example twice duplicates layout · Issue #2059 · bokeh/bokeh · GitHub

I can confirm this behavior with the current master, it would be helpful if you could add any additional information about what versions you have or have not had this problem with on that issue.

Thanks,

Bryan

···

On Mar 10, 2015, at 11:20 PM, Kevin Crispie <kevincrispie@gmail.com> wrote:

Hello, I have a similar problem to this, where my output from a bokeh program shows all the graphs that I have ever produced using this code, appending the newest one at the very bottom. I'm using bokeh with anaconda and sublime, and running it in terminal. I've attached the .py file.

I'm trying to figure out how to edit the button feature effectively. I'm interested in doing something like the stock ticker example (which I haven't been able to get working since I'm not in an iPython notebook). I have my own candlestick plots that I want to toggle between. Figuring out how these buttons work is the first step.

Thank you,

Kevin Crispie

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAPGK7vb3994fNDhJJPzRg5ZFMhPfFCTtG3YNT16b0CM3ozw6NQ%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
<plot_test2.py>

⌁   Link to post
KK1
KK1

Hi Kevin

Perhaps this is a work around:

  1. Open a tab (in chrome) to http://localhost:5006/bokeh/

  2. Build /(Ctrl +B) your code in sublime. When you are done with that chart - close the tab.

  3. Switch to the first tab and click the trash can icon on the RHS.

  4. Edit code and rebuild

Hopefully that will only have one chart visible.

Kind regards

KK

···

On Wednesday, 11 March 2015 00:23:32 UTC-4, Kevin Crispie wrote:

Hello, I have a similar problem to this, where my output from a bokeh program shows all the graphs that I have ever produced using this code, appending the newest one at the very bottom. I’m using bokeh with anaconda and sublime, and running it in terminal. I’ve attached the .py file.

I’m trying to figure out how to edit the button feature effectively. I’m interested in doing something like the stock ticker example (which I haven’t been able to get working since I’m not in an iPython notebook). I have my own candlestick plots that I want to toggle between. Figuring out how these buttons work is the first step.

Thank you,

Kevin Crispie

⌁   Link to post
Hugo_Shi
Hugo_Shi

alternatively - this should work ( unless it is also broken )

after executing output_server

execute : curdoc().context.children =

···

On Fri, Mar 13, 2015 at 5:22 PM, KK theonlykhalid@gmail.com wrote:

Hi Kevin

Perhaps this is a work around:

  1. Open a tab (in chrome) to http://localhost:5006/bokeh/
  1. Build /(Ctrl +B) your code in sublime. When you are done with that chart - close the tab.
  1. Switch to the first tab and click the trash can icon on the RHS.
  1. Edit code and rebuild

Hopefully that will only have one chart visible.

Kind regards

KK

On Wednesday, 11 March 2015 00:23:32 UTC-4, Kevin Crispie wrote:

Hello, I have a similar problem to this, where my output from a bokeh program shows all the graphs that I have ever produced using this code, appending the newest one at the very bottom. I’m using bokeh with anaconda and sublime, and running it in terminal. I’ve attached the .py file.

I’m trying to figure out how to edit the button feature effectively. I’m interested in doing something like the stock ticker example (which I haven’t been able to get working since I’m not in an iPython notebook). I have my own candlestick plots that I want to toggle between. Figuring out how these buttons work is the first step.

Thank you,

Kevin Crispie

–

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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3ae68b9f-c29b-4681-944b-1d950762a86f%40continuum.io.

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

⌁   Link to post
KK1
KK1

Hi Hugo

Could you show where one enters that line of code in Kevin’s example please?

Thanks

KK

···

On Fri, Mar 13, 2015 at 5:25 PM, Hugo Shi hugo.r.shi@gmail.com wrote:

alternatively - this should work ( unless it is also broken )

after executing output_server

execute : curdoc().context.children =

–

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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAMn%3DpDT1ZOtLd54E0qODMfJqj5PsZhNUSwcBQFGsFgm5MGtSuA%40mail.gmail.com.

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

On Fri, Mar 13, 2015 at 5:22 PM, KK theonlykhalid@gmail.com wrote:

Hi Kevin

Perhaps this is a work around:

  1. Open a tab (in chrome) to http://localhost:5006/bokeh/
  1. Build /(Ctrl +B) your code in sublime. When you are done with that chart - close the tab.
  1. Switch to the first tab and click the trash can icon on the RHS.
  1. Edit code and rebuild

Hopefully that will only have one chart visible.

Kind regards

KK

On Wednesday, 11 March 2015 00:23:32 UTC-4, Kevin Crispie wrote:

Hello, I have a similar problem to this, where my output from a bokeh program shows all the graphs that I have ever produced using this code, appending the newest one at the very bottom. I’m using bokeh with anaconda and sublime, and running it in terminal. I’ve attached the .py file.

I’m trying to figure out how to edit the button feature effectively. I’m interested in doing something like the stock ticker example (which I haven’t been able to get working since I’m not in an iPython notebook). I have my own candlestick plots that I want to toggle between. Figuring out how these buttons work is the first step.

Thank you,

Kevin Crispie

–

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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3ae68b9f-c29b-4681-944b-1d950762a86f%40continuum.io.

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

⌁   Link to post

End of archived discussion · Replies are disabled