How to stop bokeh from opening a new tab in Jupyter Notebook? : <p>First of all, before this is tagged as duplicate, I have read the other solutions and unfortunately none of them worked for me.</p>

<p>My problem is that I want to display a bokeh plot in Juypter Notebook (and only in Jupyter Notebook), not in a new  tab/window.</p>

<p>In the official documentation <a href="http://bokeh.pydata.org/en/latest/docs/user_guide/notebook.html#inline-plots" rel="noreferrer">here</a> I am told that I only need to change</p>

<pre><code>output_file
</code></pre>

<p>to </p>

<pre><code>output_notebook
</code></pre>

<p>Even though the plot <strong>is</strong> now displayed inline if I do that, bokeh won't stop also opening a new tab and needlessly displaying the plot there.</p>

<p>Since I'm gonna create lots of plots in my project, it'd be very nice to not always have to close this new tab and return to notebook, but just have it stop creating new tabs, just as it would work with e.g. matplotlib.</p>

<p>What confuses me is that if I load up the <a href="https://hub.mybinder.org/user/bokeh-bokeh-notebooks-obozp12q/notebooks/tutorial/02%20-%20Styling%20and%20Theming.ipynb" rel="noreferrer">official tutorial</a> and enter code there, for example</p>

<pre><code>import numpy as np

x = np.linspace(0, 10, 100)
y = np.exp(x)

p = figure()
p.line(x, y)

show(p)
</code></pre>

<p>there is no new tab opened. If I now run the same code locally on my machine's Juypter Notebook, it <strong>does</strong> open up a new tab.</p>

<p>I've been trying for a while now to fix this, any help would be very much appreciated.</p>

<p>Thanks in advance, Vincent</p>
