☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Gapminder error in Bokeh

Community Support
siddharth1199
siddharth1199

Hello,

I am trying to user bokeh to create an animated plot using the gapminder package, however I am getting an error in my import function line:

from bokeh.sampledata.gapminder import life_expect

and the error is

ImportError: cannot import name ‘life_expect’

Any suggestions to resolve this issue?

Thank you

⌁   Link to post
Bryan
Bryan

Hi,

The name of the attribute is life_expectancy:

  from bokeh.sampledata.gapminder import life_expectancy

Thanks,

Bryan

···

On Mar 14, 2018, at 16:06, siddharth1199@gmail.com wrote:

Hello,

I am trying to user bokeh to create an animated plot using the gapminder package, however I am getting an error in my import function line:

from bokeh.sampledata.gapminder import life_expect

and the error is

ImportError: cannot import name 'life_expect'

Any suggestions to resolve this issue?

Thank you

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/b7a1ce77-ee3b-44ae-8b8b-b8a59d1598b3%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled