bokeh plots in zeppelin with bzkep and pyspark- two plots showing instead of 1

How to show only one plot and not a second repeat plot, guessing parent and child plots.

%pyspark

from bokeh.io import output_notebook, show

from bokeh.layouts import row, column

from bokeh.models import BoxSelectTool, LassoSelectTool, Spacer

from bokeh.plotting import figure, curdoc

from bokeh.io import output_notebook

import bkzep

output_notebook(notebook_type=‘zeppelin’)

from bokeh.sampledata.autompg import autompg as df

from numpy import histogram, linspace

from scipy.stats.kde import gaussian_kde

pdf = gaussian_kde(df.hp)

x = linspace(0,250,200)

p = figure(x_axis_type=“log”, plot_height=300)

p.line(x, pdf(x))

plot actual hist for comparison

hist, edges = histogram(df.hp, density=True, bins=20)

p.quad(top=hist, bottom=0, left=edges[:-1], right=edges[1:], alpha=0.4, line_color=“red”, )

show§

Hi,

It's not really clear what you are asking. A screenshot would probably go a long way towards making things clear. Also, it's worth mentioning that bkzep is a separate project, and not maintained by the Bokeh team. You might have better luck taking issues to their tracker directly:

   https://github.com/zjffdu/bkzep

Thanks,

Bryan

···

On Nov 2, 2018, at 04:49, [email protected] wrote:

How to show only one plot and not a second repeat plot, guessing parent and child plots.

%pyspark
from bokeh.io import output_notebook, show
from bokeh.layouts import row, column
from bokeh.models import BoxSelectTool, LassoSelectTool, Spacer
from bokeh.plotting import figure, curdoc
from bokeh.io import output_notebook
import bkzep
output_notebook(notebook_type='zeppelin')

from bokeh.sampledata.autompg import autompg as df
from numpy import histogram, linspace
from scipy.stats.kde import gaussian_kde
pdf = gaussian_kde(df.hp)
x = linspace(0,250,200)
p = figure(x_axis_type="log", plot_height=300)
p.line(x, pdf(x))
# plot actual hist for comparison
hist, edges = histogram(df.hp, density=True, bins=20)
p.quad(top=hist, bottom=0, left=edges[:-1], right=edges[1:], alpha=0.4, line_color="red", )

show(p)

--
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/0fce2356-a385-40f8-85df-1cccd831e60b%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.