Using:
Fedora 20
Google Chrome
python 3.4
Bokeh 0.6.1
I recently upgraded to bokeh 0.6.1 to try out the bokeh.charts
Note, when I use my old plots they work fine (bokeh.plotting)
I went into bokeh.charts and found an example for Bar and used that example:
from collections import OrderedDict
import numpy as np
from bokeh.charts import Bar
from bokeh.sampledata.olympics2014 import data
data = {d[‘abbr’]: d[‘medals’] for d in data[‘data’] if d[‘medals’][‘total’] > 0}
countries = sorted(data.keys(), key=lambda x: data[‘total’], reverse=True)
gold = np.array([data[abbr][‘gold’] for abbr in countries], dtype=np.float)
silver = np.array([data[abbr][‘silver’] for abbr in countries], dtype=np.float)
bronze = np.array([data[abbr][‘bronze’] for abbr in countries], dtype=np.float)
medals = OrderedDict(bronze=bronze, silver=silver, gold=gold)
bar = Bar(medals, countries)
bar.title(“stacked, dict_input”).xlabel(“countries”).ylabel(“medals”).legend(True).width(600).height(400).stacked().notebook().show()
I get the below errors:
Javascript error adding output!
ReferenceError: Bokeh is not defined
See your browser Javascript console for more details.
When I open the Chrome javascript console here are the errors:
GET http://localhost:8888/static/components/backbone/backbone-min.map 404 (Not Found) :8888/static/components/backbone/backbone-min.map:1
GET http://localhost:8888/static/components/underscore/underscore-min.map 404 (Not Found) :8888/static/components/underscore/underscore-min.map:1
GET http://localhost:8888/static/components/jquery/jquery.min.map 404 (Not Found)