
I’m trying to follow the blaze_server.py example and can see the results in my browser. However, when I try to set things up using my own data along with a blaze server then my plots come up empty:
import bokeh.session
import bokeh.plotting
import bokeh.models
import blaze
from blaze.server.client import Client
session = bokeh.session.Session(load_from_config=False)
bokeh.plotting.output_server(‘blaze_source’, session=session)
c = Client(‘localhost:9000’)
d = blaze.Data(c)
source = bokeh.models.BlazeDataSource()
source.from_blaze(d.dat)
plot = bokeh.plotting.figure()
plot.circle(‘A’, ‘B’, source=source)
bokeh.plotting.show(plot)
I can see the data in d.dat but I don’t know what I’m doing wrong otherwise. The data is loaded into the blaze server via:
dat = blaze.Data(‘data.csv’)
server = blaze.Server({‘dat’: dat})
server.run(host=“127.0.0.1”, port=9000)
It’s obvious that I don’t follow the logic but I’m happy to take on any suggestions or would be grateful if somebody can point me in the right direction. Ultimately, my goal is to do downsampling for a scatter/circle plot.
