question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bokeh keep open a new tab

See original GitHub issue

Hi guys, when I’m using a simple pandas plotting with bokeh, it keeps opening a new tab as I run the plot. When I combined with the slider interact ipython html widgets, as I do sliding, the bokeh will keep open a new tab. I’m using ipython notebook, chrome browser, and OSX Yosemite 10.10.2. I can reproduce this issue using different computer.

Library used:

  • Bokeh : 0.8.2
  • Pandas : 0.16.0
  • Numpy : 1.9.2
  • IPython 3.1.0
  • Python 2.7.9
from bokeh import mpl
import bokeh.plotting as bk
import pandas as pd
import numpy as np
from IPython.html.widgets import interact
bk.output_notebook()

def update(n=5):
    pd.Series(np.arange(n)).plot()
    bk.show(mpl.to_bokeh(notebook=True))

interact(update,n=(3,10))

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
veltzerdoroncommented, Mar 15, 2018

#This resets the output to notebook in case you set it to a file before otherwise both are opened

from bokeh.plotting import figure, show, output_notebook, reset_output

reset_output() output_notebook()

0reactions
bryevdvcommented, Sep 25, 2017

@veltzerdoron the GH issue tracker is not the appropriate place for general support or usage questions, please go to the public mailing list:

https://groups.google.com/a/continuum.io/forum/#!forum/bokeh

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bokeh keep open new tab - Community Support
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...
Read more >
How to stop bokeh from opening a new tab in Jupyter ...
You need to call output_notebook at the top of your notebook, but only call output_notebook . If you call output_file at all, that...
Read more >
Tabbed Layout With Panels - Real Python
A tabbed layout consists of two Bokeh widget functions: Tab() and Panel() from the bokeh.models.widgets sub-module. Like using gridplot() , making a tabbed ......
Read more >
Deploying Bokeh Apps — HoloViews v1.15.3
In this guide we will cover how we can deploy a Bokeh app from a HoloViews plot in a number of different ways:...
Read more >
Adding Interactions - Bokeh documentation
Use bokeh serve to start the Bokeh server and set up event handlers with .on_change ... For the other widgets with .on_click ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found