python - ipython notebook bokeh and output_notebook -
what happening when following error? there no error within notebook. when in regular ipython i'm wondering happening.... , in:
means... see error below.... (last 5 lines)
#set domain , function max x = np.linspace(lower, upper, steps) y = func(x) y_max = np.amax(y) * 1.1 output_notebook() p = figure( tools="pan,box_zoom,reset,save", y_range=[0, y_max], title="some beta distributions", x_axis_label='days', y_axis_label='value' ) p.line(x, y, legend = "pdf", line_color="blue") show(p) /usr/local/lib/python2.7/dist-packages/ipython/utils/path.py:303: userwarning: ipython dir '/home/vagrant/.ipython' not writable location, using temp directory. " using temp directory.".format(ipdir)) in : in :
in:
standard ipython prompt. ipython
's way of telling waiting input (just >>>
in standard python interpreter).
note output_notebook
function in browser (i.e., in notebook). if want run code in command line ipython shell (i assuming mean "in regular ipython") have use output_file
or 1 of functions in bokeh.embed
.
Comments
Post a Comment