Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Data Visualization with Bokeh Getting and Displaying Data Bokeh's ColumnDataSource

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 28,716 Points

bokeh library recent change

Less of a question and more of a strong suggestion that when you view these videos it is required to have the EXACT version of bokeh that Ken Alger is demonstrating if you hope to follow along.

Ken is using--

bokeh==0.12.5

I recently installed bokeh and got bokeh 0.12.7.

In just a couple of minor revisions (0.12.7) bokeh has removed (forced deprecation?) bokeh.charts which is integral in this video.

In my opinion, the change in bokeh is not exactly a trivial change, but more an "architecture" or philosophical change as Bokeh moves towards its 1.0 release.

Nathan Tallack
Nathan Tallack
22,159 Points

I concur with Jeff. If you intend for your course to exist without being updated it is important you author it with roadmap in mind. It has apparently been known for sometime that charts would be deprecated, so perhaps you should not have used this in your course.

Could you provide a download example of this topic using bokeh.plotting instead of bokeh.charts?

Viktor LΓ©hner
Viktor LΓ©hner
12,771 Points

Hello

According the rqquirements.txt this video uses 0.12.5 but if i check this vesion documentation, the Bar() function is not used anymore. Instead vbar() and hbar(). I thin it will be more useful this video if the author actualize.

Viktor

3 Answers

I recommend using holoview, just remember to view it in the jupyter shell else you need to do some other sort of configuration for rendering.

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 28,716 Points

Thanks for the response, Nathan.

I am currently working on another project, but plan to get back to Bokeh and Pandas and write my own tutorial as I relearn it. I like how Bokeh looks/works, and plan to adopt it into a few select projects.

I will let you know when that is done and link you to it.

best, JM