python - Bokeh Error: h is null -


i'm following tutorial : https://www.analyticsvidhya.com/blog/2015/08/interactive-data-visualization-library-python-bokeh/

and code (bokeh 0.12.6, sklearn 0.18.2, , python 3.6):

from bokeh.charts import boxplot, output_file, show sklearn.datasets import load_iris import pandas pd  iris = load_iris() df = pd.dataframe(iris.data) df.columns=['petal_width','petal_length','sepal_width','sepal_length'] df =  pd.read_csv("datasets/iris/iris.csv") data = df[['sepal_length', 'petal_length']] p = boxplot(data, width=400, height=400) output_file("boxplot.html", title="box plot example") show(p) 

but when run it, gives error:

enter image description here

i've tried google it, , leads question:

getting "message: h null"

but first, i'm not running selenium here, bokeh, , think downgrading firefox not best solution (at least in case), bug in bokeh?

hope here can help, thank you

that post 2 years old, , alot can change in 2 years. high level bokeh.charts api mentioned there has been moved separate repo. after next release of bokeh, old bokeh.charts have explicitly installed , imported bkcharts. however, while core bokeh supported , maintained, old charts api should considered completely unmaintained , abandoned (there no 1 work). not recommend use bokeh.charts purpose today.

if looking high-level api on top of bokeh, should turn holoviews:

http://holoviews.org/

it is:

  • officially endorsed bokeh project high level api
  • already surpasses old bokeh.charts in every way
  • has extensive , fantastic documentation
  • and importantly: has active team maintaining it

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -