I’m expecting the following code to bring up a plot inside the document “test alpha” on the server when I look at http://127.0.0.1:5006/ . However, while I see the document get created and that reflected in the browser, no plots appear after push(), nor when I click on the document title in the web browser. What am I doing wrong?
Note that if I use show(f) I do get a plot displayed at an URL starting with http://127.0.0.1:5006/ but I still can’t access it from the root URL.
I just updated to bokeh 0.9.3, same thing observed with 0.9.2.
Code follows:
In [1]: from bokeh.plotting import figure, output_server, Session, push
In [2]: session = Session(root_url=‘http://127.0.0.1:5006/’, load_from_config=False)
In [3]: output_server(docname=‘test alpha’, session=session)
In [4]: f = figure()
In [5]: f.line([0, 2, 4, 6, 8], [9, 7, 4, 5, 8])
Out[5]: <bokeh.plotting.Figure at 0x10719cb00>
In [6]: push(session=session)
Out[6]:
[<bokeh.models.ranges.DataRange1d at 0x1105b99e8>,
<bokeh.models.glyphs.Line at 0x1018bd630>,
<bokeh.models.tools.ResetTool at 0x110c59e10>,
<bokeh.models.tools.HelpTool at 0x110c59d68>,
<bokeh.models.sources.ColumnDataSource at 0x110c59dd8>,
<bokeh.models.plots.PlotContext at 0x10f9e6e80>,
<bokeh.models.glyphs.Line at 0x1018c6080>,
<bokeh.models.renderers.GlyphRenderer at 0x1005e64a8>,
<bokeh.models.ranges.DataRange1d at 0x1105b9cc0>,
<bokeh.models.grids.Grid at 0x1105b9e80>,
<bokeh.models.tools.BoxZoomTool at 0x1105b9f98>,
<bokeh.models.tools.PanTool at 0x1105c2240>,
<bokeh.models.tools.ResizeTool at 0x1105b9da0>,
<bokeh.models.tickers.BasicTicker at 0x1105b99b0>,
<bokeh.models.tools.ToolEvents at 0x10719cb70>,
<bokeh.models.grids.Grid at 0x10fa08710>,
<bokeh.models.axes.LinearAxis at 0x1105b9b00>,
<bokeh.models.formatters.BasicTickFormatter at 0x10f9e6d68>,
<bokeh.models.axes.LinearAxis at 0x10f9e66a0>,
<bokeh.models.tools.PreviewSaveTool at 0x110c59d30>,
<bokeh.models.tickers.BasicTicker at 0x10fa08a58>,
<bokeh.plotting.Figure at 0x10719cb00>,
<bokeh.models.tools.WheelZoomTool at 0x1105b9fd0>,
<bokeh.models.formatters.BasicTickFormatter at 0x1105b9d68>]