Hello,

I’m either missing something obvious or there’s a bug.

When I execute example script shown below, both .html files are created;

“out1.html” contains the sine figure only, and “out2.html” contains both the

sine and exponential figures.

I only want “out2.html” to contain the second figure; how can I achieve that?

I’m using bokeh 0.6.1.

thanks.

## ···

import numpy as np

from bokeh.plotting import *

N = 100

x1 = np.linspace(0, 4*np.pi, N)

y1 = np.sin(x1)

x2 = np.linspace(0, 10, N)

y2 = np.exp(x2)

output_file(‘out1.html’)

figure(tools=“pan,wheel_zoom,box_zoom,reset,previewsave”)

line(x1, y1, legend=“sin(x)”)

save()

output_file(‘out2.html’)

figure(tools=“pan,wheel_zoom,box_zoom,reset,previewsave”)

line(x2, y2, legend=“exp(x)”)

save()