Bokeh keep open new tab

Hi guys,

I’m trying to use pandas plotting and bokeh. But it keeps opening a new tab. Here’s my code, I make this in a cell ipython notebook:

from bokeh import mpl
import bokeh.plotting as bk
import pandas as pd
import numpy as np

bk.output_notebook()
pd.Series(np.arange(5)).plot()
bk.show(mpl.to_bokeh())

``

How do I make it show it doesn’t keep opening a new tab? It does plot correctly in output cell though

Hi Jonathan,

Thanks for bringing this up. It looks like mpl.to_bokeh still operates sort-of using some old-style semantics:

  https://github.com/bokeh/bokeh/blob/master/bokeh/mpl.py#L425

It looks like passing `notebook=True` to mpl.to_bokeh will stop the file and tab creation. I'll make an issue to investigate whether this interface needs some changing.

Thanks,

Bryan

···

On Apr 17, 2015, at 5:10 AM, Jonathan Napitupulu <[email protected]> wrote:

Hi guys,

I'm trying to use pandas plotting and bokeh. But it keeps opening a new tab. Here's my code, I make this in a cell ipython notebook:

from bokeh import mpl
import bokeh.plotting as bk
import pandas as pd
import numpy as np

bk.output_notebook()
pd.Series(np.arange(5)).plot()
bk.show(mpl.to_bokeh())

How do I make it show it doesn't keep opening a new tab? It does plot correctly in output cell though

--
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/41151e51-1e91-44ad-806a-6433088e7943%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan,

I have tried all the possible option in show() and to_bokeh(), including notebook=True.

Unfortunately, this doesn’t solve the problem.

When I tried to combine with ipython.html.widgets.interact, it continuously open new window as I change the slider.

Thank you for looking into this problem, and for creating bokeh!

···

On Friday, April 17, 2015 at 5:10:16 PM UTC+7, Jonathan Napitupulu wrote:

Hi guys,

I’m trying to use pandas plotting and bokeh. But it keeps opening a new tab. Here’s my code, I make this in a cell ipython notebook:

from bokeh import mpl
import bokeh.plotting as bk
import pandas as pd
import numpy as np

bk.output_notebook()
pd.Series(np.arange(5)).plot()
bk.show(mpl.to_bokeh())

``

How do I make it show it doesn’t keep opening a new tab? It does plot correctly in output cell though

Jonathan,

That is really weird, this will require more investigation then, unfortunately. Can you make an issue on the GH issue tracker so that more of the team can be engaged in the discussion:

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

Please include as much information about versions (bokeh, ipython, python, etc.) and platform (OS, browser, etc.) as possible as well as the script to reproduce the problem.

Thanks,

Bryan

···

On Apr 17, 2015, at 9:20 AM, Jonathan Napitupulu <[email protected]> wrote:

Hi Bryan,

I have tried all the possible option in show() and to_bokeh(), including notebook=True.
Unfortunately, this doesn't solve the problem.

When I tried to combine with ipython.html.widgets.interact, it continuously open new window as I change the slider.
Thank you for looking into this problem, and for creating bokeh!

On Friday, April 17, 2015 at 5:10:16 PM UTC+7, Jonathan Napitupulu wrote:
Hi guys,

I'm trying to use pandas plotting and bokeh. But it keeps opening a new tab. Here's my code, I make this in a cell ipython notebook:

from bokeh import mpl
import bokeh.plotting as bk
import pandas as pd
import numpy as np

bk.output_notebook()
pd.Series(np.arange(5)).plot()
bk.show(mpl.to_bokeh())

How do I make it show it doesn't keep opening a new tab? It does plot correctly in output cell though

--
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/f900b61b-d400-43e3-ad01-b61b12c4dbc5%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Got it issue created at #2198

···

On Friday, April 17, 2015 at 5:10:16 PM UTC+7, Jonathan Napitupulu wrote:

Hi guys,

I’m trying to use pandas plotting and bokeh. But it keeps opening a new tab. Here’s my code, I make this in a cell ipython notebook:

from bokeh import mpl
import bokeh.plotting as bk
import pandas as pd
import numpy as np

bk.output_notebook()
pd.Series(np.arange(5)).plot()
bk.show(mpl.to_bokeh())

``

How do I make it show it doesn’t keep opening a new tab? It does plot correctly in output cell though