Gapminder Notebook for Bokeh 0.12.3

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!

Hi Emily,

        Can you provide more context. What did you try and

what happened? Where did you
get the script from?

            The gapminder script is working for me, so we'll

need more information to be sure about what went wrong.

Best,

Bird

···

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

        Today is my

first day playing with Bokeh and I am having a difficult
time running the scripts available because it does not
appear there is a complete script available for 0.12.3.

        I have been

playing around with it all day, and it’s time that this
beginner in python (v 3.5.2) asks for help.

        Thank you so

much!

  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 [email protected].

  To post to this group, send email to [email protected]

  To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).


Sarah Bird
Developer, Bokeh

    [
      ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
    ](http://continuum.io)

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

···

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:

Hi Emily,

        Can you provide more context. What did you try and

what happened? Where did you
get the script from?

            The gapminder script is working for me, so we'll

need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

        Today is my

first day playing with Bokeh and I am having a difficult
time running the scripts available because it does not
appear there is a complete script available for 0.12.3.

        I have been

playing around with it all day, and it’s time that this
beginner in python (v 3.5.2) asks for help.

        Thank you so

much!

  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 [email protected].

  To post to this group, send email to [email protected]

  To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).


Sarah Bird
Developer, Bokeh

    [
      <img alt="Continuum Analytics" src="https://lh6.googleusercontent.com/proxy/VYgVjggTk1hCXSN9wFkffE3I6kxTvJ51tT4KvDXOuKbs1WyFG66k7kt2-vkDimbyxfWtP-d1paJmstMYhPPnDYSUF4rLPoYM2GM2QFM=w5000-h5000" height="30px" width="150px">
    ](http://continuum.io)

Sarah, after the first error, i thought it was because i needed to give it the exact path. I gave it the exact path, but, then i realized that Bokeh 0.12.3 does not come with a “process_data” file. These are the files that comes with Bokeh 0.12.3:

  1. gapminder_fertility.csv

  2. gapminder_population.csv

3. gapminder_life_expectancy.csv
4. gapminder_regions.csv

Yes, it's the different file names that lead me to believe that the script is not updated to reflect the newest version of Bokeh.

I then tried http://nbviewer.jupyter.org/github/birdsarah/bokeh-miscellany/blob/master/gapminder-nc/Linear%20Interpolator.ipynb. it works great, but it appears to be an incomplete script without guidance as to what to do next. And, being new to all this, i don't know where/how to pick up from where the script ends. Please assist.
···

On Wednesday, November 30, 2016 at 9:49:02 PM UTC-5, Em Em wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:

Hi Emily,

        Can you provide more context. What did you try and

what happened? Where did you
get the script from?

            The gapminder script is working for me, so we'll

need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

        Today is my

first day playing with Bokeh and I am having a difficult
time running the scripts available because it does not
appear there is a complete script available for 0.12.3.

        I have been

playing around with it all day, and it’s time that this
beginner in python (v 3.5.2) asks for help.

        Thank you so

much!

  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 [email protected].

  To post to this group, send email to [email protected]

  To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).


Sarah Bird
Developer, Bokeh

    [
      <img alt="Continuum Analytics" src="https://lh6.googleusercontent.com/proxy/VYgVjggTk1hCXSN9wFkffE3I6kxTvJ51tT4KvDXOuKbs1WyFG66k7kt2-vkDimbyxfWtP-d1paJmstMYhPPnDYSUF4rLPoYM2GM2QFM=w5000-h5000" height="30px" width="150px">
    ](http://continuum.io)

Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

  https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble

It's also showing up for me in the bundled bconda Examples under the same dir:

  $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
  __init__.py data.py gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

···

On Nov 30, 2016, at 8:49 PM, Em Em <[email protected]> wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named 'data'

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we'll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it's time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!
--
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 [email protected]ontinuum.io.
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
Sarah Bird
Developer, Bokeh

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

···

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:

Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble)

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:

Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird

Developer, Bokeh


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

It looks like you need to install the sample data, which is distributed separately:

http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data

Thanks,

Bryan

···

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:

Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble)

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:

Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird

Developer, Bokeh


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

The error is still there, even after the install of the sample data, Bryan.

···

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:

Hi,

It looks like you need to install the sample data, which is distributed separately:

http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:

Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble)

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:

Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird

Developer, Bokeh


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Emily,

That's a different error, that's back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

  python gapminder.py

in that directory, and not something like

  python /full/path/to/gapminder.py

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it's good to step back and check assumptions. If you run this example:

  https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

  https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

···

On Dec 1, 2016, at 4:03 AM, Em Em <[email protected]> wrote:

The error is still there, even after the install of the sample data, Bryan.

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
Hi,

It looks like you need to install the sample data, which is distributed separately:

        http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em <[email protected]> wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call 'fertility'. :

As for getting the example code, I googled "gapminder bokeh"

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

        https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble

It's also showing up for me in the bundled bconda Examples under the same dir:

        $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
        __init__.py data.py gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

> On Nov 30, 2016, at 8:49 PM, Em Em <[email protected].com> wrote:
>
> Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py
>
> I ran the script, and the first error is: ImportError: No module named 'data'
>
>
>
> On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
> Hi Emily,
>
> Can you provide more context. What did you try and what happened? Where did you get the script from?
>
> The gapminder script is working for me, so we'll need more information to be sure about what went wrong.
>
> Best,
>
> Bird
>
> On 11/30/16 8:33 PM, Em Em wrote:
>> Hello there!
>>
>> Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.
>>
>> I have been playing around with it all day, and it's time that this beginner in python (v 3.5.2) asks for help.
>>
>> Thank you so much!
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
>> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>
> --
> Sarah Bird
> Developer, Bokeh
>
>
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What’s next, Bryan?

···

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:

Hi Emily,

That’s a different error, that’s back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

    python gapminder.py

in that directory, and not something like

    python /full/path/to/gapminder.py

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it’s good to step back and check assumptions. If you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py)

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py)

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

On Dec 1, 2016, at 4:03 AM, Em Em [email protected] wrote:

The error is still there, even after the install of the sample data, Bryan.

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:

Hi,

It looks like you need to install the sample data, which is distributed separately:

    [http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data](http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data)

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:

Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble)

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!

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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird
Developer, Bokeh


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

I’d suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:

Thanks,

Bryan

···

On Dec 1, 2016, at 9:25 AM, Em Em [email protected] wrote:

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What’s next, Bryan?

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:
Hi Emily,

That’s a different error, that’s back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

    python gapminder.py 

in that directory, and not something like

    python /full/path/to/gapminder.py 

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it’s good to step back and check assumptions. If you run this example:

    [https://github.com/](https://github.com/)bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py 

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

    https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py 

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

On Dec 1, 2016, at 4:03 AM, Em Em [email protected] wrote:

The error is still there, even after the install of the sample data, Bryan.

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
Hi,

It looks like you need to install the sample data, which is distributed separately:

    http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data 

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble 

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble 
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja 

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!

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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird
Developer, Bokeh


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Yay, it works!! Here’s my next error, Bryan.

···

On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:

I’d suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:

Thanks,

Bryan

On Dec 1, 2016, at 9:25 AM, Em Em [email protected] wrote:

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What’s next, Bryan?

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:
Hi Emily,

That’s a different error, that’s back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

    python gapminder.py 

in that directory, and not something like

    python /full/path/to/gapminder.py 

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it’s good to step back and check assumptions. If you run this example:

    [https://github.com/](https://github.com/)bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py 

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py) 

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

On Dec 1, 2016, at 4:03 AM, Em Em [email protected] wrote:

The error is still there, even after the install of the sample data, Bryan.

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
Hi,

It looks like you need to install the sample data, which is distributed separately:

    [http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data](http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data) 

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble) 

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble 
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja 

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!

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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird
Developer, Bokeh


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

oops, clarification, i was able to move pass the data error. Now, am stumbling with a new error. Please see below for the error.

Regarding trying it on command prompt suggestion, umm…am very new to Python, and would not know where to start.

I appreciate all the help!

···

On Thursday, December 1, 2016 at 10:50:03 AM UTC-5, Em Em wrote:

Yay, it works!! Here’s my next error, Bryan.

On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:

I’d suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:

Thanks,

Bryan

On Dec 1, 2016, at 9:25 AM, Em Em [email protected] wrote:

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What’s next, Bryan?

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:
Hi Emily,

That’s a different error, that’s back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

    python gapminder.py 

in that directory, and not something like

    python /full/path/to/gapminder.py 

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it’s good to step back and check assumptions. If you run this example:

    [https://github.com/](https://github.com/)bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py 

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py) 

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

On Dec 1, 2016, at 4:03 AM, Em Em [email protected] wrote:

The error is still there, even after the install of the sample data, Bryan.

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
Hi,

It looks like you need to install the sample data, which is distributed separately:

    [http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data](http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data) 

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble) 

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble 
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja 

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!

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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird
Developer, Bokeh


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

alright, with some intellectual efforts on my part (duh!), i’ve been OK with the majority of the code…until this message:

···

On Thursday, December 1, 2016 at 11:10:41 AM UTC-5, Em Em wrote:

oops, clarification, i was able to move pass the data error. Now, am stumbling with a new error. Please see below for the error.

Regarding trying it on command prompt suggestion, umm…am very new to Python, and would not know where to start.

I appreciate all the help!

On Thursday, December 1, 2016 at 10:50:03 AM UTC-5, Em Em wrote:

Yay, it works!! Here’s my next error, Bryan.

On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:

I’d suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:

Thanks,

Bryan

On Dec 1, 2016, at 9:25 AM, Em Em [email protected] wrote:

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What’s next, Bryan?

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:
Hi Emily,

That’s a different error, that’s back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

    python gapminder.py 

in that directory, and not something like

    python /full/path/to/gapminder.py 

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it’s good to step back and check assumptions. If you run this example:

    [https://github.com/](https://github.com/)bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py 

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py) 

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

On Dec 1, 2016, at 4:03 AM, Em Em [email protected] wrote:

The error is still there, even after the install of the sample data, Bryan.

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
Hi,

It looks like you need to install the sample data, which is distributed separately:

    [http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data](http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data) 

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble) 

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble 
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja 

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!

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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird
Developer, Bokeh


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Emily,

You've changed the definition of process_data by removing the import from inside the function, and this is causing your problems. By removing the import from inside the function, it makes the variables such as "fertility" get used as both local and global variables at different times, and this is causing python to raise an error.

Thanks,

Bryan

···

On Dec 1, 2016, at 10:10 AM, Em Em <[email protected]> wrote:

oops, clarification, i was able to move pass the data error. Now, am stumbling with a new error. Please see below for the error.

Regarding trying it on command prompt suggestion, umm...am very new to Python, and would not know where to start.

I appreciate all the help!

On Thursday, December 1, 2016 at 10:50:03 AM UTC-5, Em Em wrote:
Yay, it works!! Here's my next error, Bryan.

On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:
I'd suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:

Thanks,

Bryan

On Dec 1, 2016, at 9:25 AM, Em Em <[email protected]> wrote:

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What's next, Bryan?

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:
Hi Emily,

That's a different error, that's back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

        python gapminder.py

in that directory, and not something like

        python /full/path/to/gapminder.py

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it's good to step back and check assumptions. If you run this example:

        https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

        https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

> On Dec 1, 2016, at 4:03 AM, Em Em <[email protected]> wrote:
>
> The error is still there, even after the install of the sample data, Bryan.
>
>
>
>
>
> On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
> Hi,
>
> It looks like you need to install the sample data, which is distributed separately:
>
> http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data
>
> Thanks,
>
> Bryan
>
> On Nov 30, 2016, at 21:54, Em Em <[email protected]> wrote:
>
>> Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call 'fertility'. :
>>
>>
>>
>>
>> As for getting the example code, I googled "gapminder bokeh"
>>
>>
>> On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
>> Hi Emily,
>>
>> In the GitHub repo, the data.py module is in the same directory as gapminder.py:
>>
>> https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble
>>
>> It's also showing up for me in the bundled bconda Examples under the same dir:
>>
>> $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
>> __init__.py data.py gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja
>>
>> Can you describe how you obtained the example code?
>>
>> In any case for now you can download data.py from the link above.
>>
>> Thanks,
>>
>> Bryan
>>
>> > On Nov 30, 2016, at 8:49 PM, Em Em <[email protected]> wrote:
>> >
>> > Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py
>> >
>> > I ran the script, and the first error is: ImportError: No module named 'data'
>> >
>> >
>> >
>> > On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
>> > Hi Emily,
>> >
>> > Can you provide more context. What did you try and what happened? Where did you get the script from?
>> >
>> > The gapminder script is working for me, so we'll need more information to be sure about what went wrong.
>> >
>> > Best,
>> >
>> > Bird
>> >
>> > On 11/30/16 8:33 PM, Em Em wrote:
>> >> Hello there!
>> >>
>> >> Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.
>> >>
>> >> I have been playing around with it all day, and it's time that this beginner in python (v 3.5.2) asks for help.
>> >>
>> >> Thank you so much!
>> >> --
>> >> 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 [email protected].
>> >> To post to this group, send email to [email protected].
>> >> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
>> >> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>> >
>> > --
>> > Sarah Bird
>> > Developer, Bokeh
>> >
>> >
>> >
>> >
>> > --
>> > 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 [email protected].
>> > To post to this group, send email to [email protected].
>> > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
>> > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>>
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
>> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/0feadd03-785d-4221-92ba-1516b02fcc84%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

That's a warning, but it is a harmless one and should not prevent things from working in this case (i.e. it can be ignored)

Thanks,

Bryan

···

On Dec 1, 2016, at 10:33 AM, Em Em <[email protected]> wrote:

alright, with some intellectual efforts on my part (duh!), i've been OK with the majority of the code...until this message:

On Thursday, December 1, 2016 at 11:10:41 AM UTC-5, Em Em wrote:
oops, clarification, i was able to move pass the data error. Now, am stumbling with a new error. Please see below for the error.

Regarding trying it on command prompt suggestion, umm...am very new to Python, and would not know where to start.

I appreciate all the help!

On Thursday, December 1, 2016 at 10:50:03 AM UTC-5, Em Em wrote:
Yay, it works!! Here's my next error, Bryan.

On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:
I'd suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:

Thanks,

Bryan

On Dec 1, 2016, at 9:25 AM, Em Em <[email protected]> wrote:

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What's next, Bryan?

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:
Hi Emily,

That's a different error, that's back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

        python gapminder.py

in that directory, and not something like

        python /full/path/to/gapminder.py

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it's good to step back and check assumptions. If you run this example:

        https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

        https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

> On Dec 1, 2016, at 4:03 AM, Em Em <[email protected]> wrote:
>
> The error is still there, even after the install of the sample data, Bryan.
>
>
>
>
>
> On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
> Hi,
>
> It looks like you need to install the sample data, which is distributed separately:
>
> http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data
>
> Thanks,
>
> Bryan
>
> On Nov 30, 2016, at 21:54, Em Em <[email protected]> wrote:
>
>> Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call 'fertility'. :
>>
>>
>>
>>
>> As for getting the example code, I googled "gapminder bokeh"
>>
>>
>> On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
>> Hi Emily,
>>
>> In the GitHub repo, the data.py module is in the same directory as gapminder.py:
>>
>> https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble
>>
>> It's also showing up for me in the bundled bconda Examples under the same dir:
>>
>> $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
>> __init__.py data.py gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja
>>
>> Can you describe how you obtained the example code?
>>
>> In any case for now you can download data.py from the link above.
>>
>> Thanks,
>>
>> Bryan
>>
>> > On Nov 30, 2016, at 8:49 PM, Em Em <[email protected]> wrote:
>> >
>> > Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py
>> >
>> > I ran the script, and the first error is: ImportError: No module named 'data'
>> >
>> >
>> >
>> > On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
>> > Hi Emily,
>> >
>> > Can you provide more context. What did you try and what happened? Where did you get the script from?
>> >
>> > The gapminder script is working for me, so we'll need more information to be sure about what went wrong.
>> >
>> > Best,
>> >
>> > Bird
>> >
>> > On 11/30/16 8:33 PM, Em Em wrote:
>> >> Hello there!
>> >>
>> >> Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.
>> >>
>> >> I have been playing around with it all day, and it's time that this beginner in python (v 3.5.2) asks for help.
>> >>
>> >> Thank you so much!
>> >> --
>> >> 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 [email protected].
>> >> To post to this group, send email to [email protected].
>> >> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
>> >> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>> >
>> > --
>> > Sarah Bird
>> > Developer, Bokeh
>> >
>> >
>> >
>> >
>> > --
>> > 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 [email protected].
>> > To post to this group, send email to [email protected].
>> > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
>> > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>>
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
>> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c397c23e-578d-446c-8b6f-095bf72ec1f1%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hello Bryan,

A quick question on running Bokeh server through spyder. When I tried to run the bokeh server the following error poped up.

Inline image 1

Please suggest me the right syntax. I am pretty new to Python 3 and Bokeh!

Cheers

Sachin

···

On Thu, Dec 1, 2016 at 5:35 PM, Bryan Van de Ven [email protected] wrote:

That’s a warning, but it is a harmless one and should not prevent things from working in this case (i.e. it can be ignored)

Thanks,

Bryan

On Dec 1, 2016, at 10:33 AM, Em Em [email protected] wrote:

alright, with some intellectual efforts on my part (duh!), i’ve been OK with the majority of the code…until this message:

On Thursday, December 1, 2016 at 11:10:41 AM UTC-5, Em Em wrote:

oops, clarification, i was able to move pass the data error. Now, am stumbling with a new error. Please see below for the error.

Regarding trying it on command prompt suggestion, umm…am very new to Python, and would not know where to start.

I appreciate all the help!

On Thursday, December 1, 2016 at 10:50:03 AM UTC-5, Em Em wrote:

Yay, it works!! Here’s my next error, Bryan.

On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:

I’d suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:

Thanks,

Bryan

On Dec 1, 2016, at 9:25 AM, Em Em [email protected] wrote:

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What’s next, Bryan?

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:

Hi Emily,

That’s a different error, that’s back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

    python gapminder.py

in that directory, and not something like

    python /full/path/to/gapminder.py

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it’s good to step back and check assumptions. If you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py)

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py)

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

On Dec 1, 2016, at 4:03 AM, Em Em [email protected] wrote:

The error is still there, even after the install of the sample data, Bryan.

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:

Hi,

It looks like you need to install the sample data, which is distributed separately:

    [http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data](http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data)

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:

Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble)

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:

Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Sarah Bird

Developer, Bokeh

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c397c23e-578d-446c-8b6f-095bf72ec1f1%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/36DF3199-50D0-4F5B-A545-2DD271A4C4B5%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

"bokeh serve" is a command line program, not python code. You have to run it from the command line, not from inside python. Probably a Bash shell terminal prompt on OSX or Linux, or a cmd.exe or Powershell prompt on windows.

There are some "programmatic" ways to start a bokeh server inside a python process, but they are somewhat more advanced. I would suggest starting with learning the standard command line usage first.

Thanks,

Bryan

···

On Dec 1, 2016, at 11:20 AM, Sachin Hegdekudgi <[email protected]> wrote:

Hello Bryan,

A quick question on running Bokeh server through spyder. When I tried to run the bokeh server the following error poped up.

<Error_for_bokeh_server.png>

Please suggest me the right syntax. I am pretty new to Python 3 and Bokeh!

Cheers
Sachin

On Thu, Dec 1, 2016 at 5:35 PM, Bryan Van de Ven <[email protected]> wrote:
That's a warning, but it is a harmless one and should not prevent things from working in this case (i.e. it can be ignored)

Thanks,

Bryan

> On Dec 1, 2016, at 10:33 AM, Em Em <[email protected]> wrote:
>
> alright, with some intellectual efforts on my part (duh!), i've been OK with the majority of the code...until this message:
>
>
>
>
>
> On Thursday, December 1, 2016 at 11:10:41 AM UTC-5, Em Em wrote:
> oops, clarification, i was able to move pass the data error. Now, am stumbling with a new error. Please see below for the error.
>
> Regarding trying it on command prompt suggestion, umm...am very new to Python, and would not know where to start.
>
> I appreciate all the help!
>
>
>
>
>
> On Thursday, December 1, 2016 at 10:50:03 AM UTC-5, Em Em wrote:
> Yay, it works!! Here's my next error, Bryan.
>
>
>
>
>
> On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:
> I'd suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:
>
>
>
> Thanks,
>
> Bryan
>
>
>> On Dec 1, 2016, at 9:25 AM, Em Em <[email protected]> wrote:
>>
>> Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What's next, Bryan?
>>
>>
>>
>>
>> On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:
>> Hi Emily,
>>
>> That's a different error, that's back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running
>>
>> python gapminder.py
>>
>> in that directory, and not something like
>>
>> python /full/path/to/gapminder.py
>>
>> from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.
>>
>> Beyond that, sometimes it's good to step back and check assumptions. If you run this example:
>>
>> https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py
>>
>> That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:
>>
>> https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py
>>
>> That will confirm that the sample data is downloaded and available properly.
>>
>> Thanks,
>>
>> Bryan
>>
>>
>> > On Dec 1, 2016, at 4:03 AM, Em Em <[email protected]> wrote:
>> >
>> > The error is still there, even after the install of the sample data, Bryan.
>> >
>> >
>> >
>> >
>> >
>> > On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
>> > Hi,
>> >
>> > It looks like you need to install the sample data, which is distributed separately:
>> >
>> > http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data
>> >
>> > Thanks,
>> >
>> > Bryan
>> >
>> > On Nov 30, 2016, at 21:54, Em Em <[email protected]> wrote:
>> >
>> >> Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call 'fertility'. :
>> >>
>> >>
>> >>
>> >>
>> >> As for getting the example code, I googled "gapminder bokeh"
>> >>
>> >>
>> >> On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
>> >> Hi Emily,
>> >>
>> >> In the GitHub repo, the data.py module is in the same directory as gapminder.py:
>> >>
>> >> https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble
>> >>
>> >> It's also showing up for me in the bundled bconda Examples under the same dir:
>> >>
>> >> $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
>> >> __init__.py data.py gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja
>> >>
>> >> Can you describe how you obtained the example code?
>> >>
>> >> In any case for now you can download data.py from the link above.
>> >>
>> >> Thanks,
>> >>
>> >> Bryan
>> >>
>> >> > On Nov 30, 2016, at 8:49 PM, Em Em <[email protected]> wrote:
>> >> >
>> >> > Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py
>> >> >
>> >> > I ran the script, and the first error is: ImportError: No module named 'data'
>> >> >
>> >> >
>> >> >
>> >> > On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
>> >> > Hi Emily,
>> >> >
>> >> > Can you provide more context. What did you try and what happened? Where did you get the script from?
>> >> >
>> >> > The gapminder script is working for me, so we'll need more information to be sure about what went wrong.
>> >> >
>> >> > Best,
>> >> >
>> >> > Bird
>> >> >
>> >> > On 11/30/16 8:33 PM, Em Em wrote:
>> >> >> Hello there!
>> >> >>
>> >> >> Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.
>> >> >>
>> >> >> I have been playing around with it all day, and it's time that this beginner in python (v 3.5.2) asks for help.
>> >> >>
>> >> >> Thank you so much!
>> >> >> --
>> >> >> 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 [email protected].
>> >> >> To post to this group, send email to [email protected].
>> >> >> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
>> >> >> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>> >> >
>> >> > --
>> >> > Sarah Bird
>> >> > Developer, Bokeh
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > 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 [email protected].
>> >> > To post to this group, send email to [email protected].
>> >> > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
>> >> > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>> >>
>> >>
>> >> --
>> >> 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 [email protected].
>> >> To post to this group, send email to [email protected].
>> >> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
>> >> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>> >
>> > --
>> > 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 [email protected].
>> > To post to this group, send email to [email protected].
>> > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
>> > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>>
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.
>> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c397c23e-578d-446c-8b6f-095bf72ec1f1%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/36DF3199-50D0-4F5B-A545-2DD271A4C4B5%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected]ontinuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CALq%2BX02VrX-vp-isdBe7sDiVoqHS42jMiHNyuHoHe-vWX-R_DA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thank you, Bryan!

I am on to a new error now. (sorry, i am so new to all this!) Attached is a copy of the script that i ran, and i am noticing a few things: 1) I am getting NameError for fertility, life_expectancy…etc; and 2) the bubble chart appears to be lacking a lot of details.

···

On Thursday, December 1, 2016 at 11:35:43 AM UTC-5, Bryan Van de ven wrote:

That’s a warning, but it is a harmless one and should not prevent things from working in this case (i.e. it can be ignored)

Thanks,

Bryan

On Dec 1, 2016, at 10:33 AM, Em Em [email protected] wrote:

alright, with some intellectual efforts on my part (duh!), i’ve been OK with the majority of the code…until this message:

On Thursday, December 1, 2016 at 11:10:41 AM UTC-5, Em Em wrote:

oops, clarification, i was able to move pass the data error. Now, am stumbling with a new error. Please see below for the error.

Regarding trying it on command prompt suggestion, umm…am very new to Python, and would not know where to start.

I appreciate all the help!

On Thursday, December 1, 2016 at 10:50:03 AM UTC-5, Em Em wrote:

Yay, it works!! Here’s my next error, Bryan.

On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:

I’d suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:

Thanks,

Bryan

On Dec 1, 2016, at 9:25 AM, Em Em [email protected] wrote:

Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What’s next, Bryan?

On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:

Hi Emily,

That’s a different error, that’s back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running

    python gapminder.py

in that directory, and not something like

    python /full/path/to/gapminder.py

from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.

Beyond that, sometimes it’s good to step back and check assumptions. If you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py)

That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py)

That will confirm that the sample data is downloaded and available properly.

Thanks,

Bryan

On Dec 1, 2016, at 4:03 AM, Em Em [email protected] wrote:

The error is still there, even after the install of the sample data, Bryan.

On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
Hi,

It looks like you need to install the sample data, which is distributed separately:

    [http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data](http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data)

Thanks,

Bryan

On Nov 30, 2016, at 21:54, Em Em [email protected] wrote:

Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call ‘fertility’. :

As for getting the example code, I googled “gapminder bokeh”

On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
Hi Emily,

In the GitHub repo, the data.py module is in the same directory as gapminder.py:

    [https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble](https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble)

It’s also showing up for me in the bundled bconda Examples under the same dir:

    $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
    __init__.py data.py  gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja

Can you describe how you obtained the example code?

In any case for now you can download data.py from the link above.

Thanks,

Bryan

On Nov 30, 2016, at 8:49 PM, Em Em [email protected] wrote:

Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py

I ran the script, and the first error is: ImportError: No module named ‘data’

On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
Hi Emily,

Can you provide more context. What did you try and what happened? Where did you get the script from?

The gapminder script is working for me, so we’ll need more information to be sure about what went wrong.

Best,

Bird

On 11/30/16 8:33 PM, Em Em wrote:

Hello there!

Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.

I have been playing around with it all day, and it’s time that this beginner in python (v 3.5.2) asks for help.

Thank you so much!

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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Sarah Bird
Developer, Bokeh


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c397c23e-578d-446c-8b6f-095bf72ec1f1%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Emily,

That's because with the import *only* in the function, those names are *only* local variables (i.e., are only available *inside* the function). It's possible to have the import both inside the function, and at the top level, and in fact that is what you'd want to do in this case. If you put the import in the first cell, the entire notebook is runnable.

Since there are now not really Bokeh-related questions, it's probably a good time to mention some resources for general python learning:

  https://www.python.org/about/gettingstarted/
  https://www.edx.org/course/introduction-computer-science-mitx-6-00-1x-9

I wish I had the bandwidth to continue to help with general (non-Bokeh) python questions, but it's simply not the case, and there are better resources available for general python learning in any case.

Thanks,

Bryan

···

On Dec 1, 2016, at 2:47 PM, Em Em <[email protected]> wrote:

Thank you, Bryan!

I am on to a new error now. (sorry, i am so new to all this!) Attached is a copy of the script that i ran, and i am noticing a few things: 1) I am getting NameError for fertility, life_expectancy..etc; and 2) the bubble chart appears to be lacking a lot of details.

https://drive.google.com/open?id=0B0fkCABeRGjfSWRkYzZSMk5KcWM

On Thursday, December 1, 2016 at 11:35:43 AM UTC-5, Bryan Van de ven wrote:
That's a warning, but it is a harmless one and should not prevent things from working in this case (i.e. it can be ignored)

Thanks,

Bryan

> On Dec 1, 2016, at 10:33 AM, Em Em <[email protected]> wrote:
>
> alright, with some intellectual efforts on my part (duh!), i've been OK with the majority of the code...until this message:
>
>
>
>
>
> On Thursday, December 1, 2016 at 11:10:41 AM UTC-5, Em Em wrote:
> oops, clarification, i was able to move pass the data error. Now, am stumbling with a new error. Please see below for the error.
>
> Regarding trying it on command prompt suggestion, umm...am very new to Python, and would not know where to start.
>
> I appreciate all the help!
>
>
>
>
>
> On Thursday, December 1, 2016 at 10:50:03 AM UTC-5, Em Em wrote:
> Yay, it works!! Here's my next error, Bryan.
>
>
>
>
>
> On Thursday, December 1, 2016 at 10:29:57 AM UTC-5, Bryan Van de ven wrote:
> I'd suggest trying to to run gapminder.py from the command line (rather than in the notebook), in the same directory that it is in, and making sure that data.py is also in that same directory:
>
>
>
> Thanks,
>
> Bryan
>
>
>> On Dec 1, 2016, at 9:25 AM, Em Em <[email protected]> wrote:
>>
>> Taking a step back, I ran the examples, and it ran properly. Confirming that that the sample data is downloaded and available properly. What's next, Bryan?
>>
>>
>>
>>
>> On Thursday, December 1, 2016 at 10:08:00 AM UTC-5, Bryan Van de ven wrote:
>> Hi Emily,
>>
>> That's a different error, that's back to python not being able to find the data.py module to import. Can you verify that data.py and gapminder.py are in the same directory, and you are running the script from that same directory? That is, that you are just running
>>
>> python gapminder.py
>>
>> in that directory, and not something like
>>
>> python /full/path/to/gapminder.py
>>
>> from some other directory? Apart from some special known locations, the python interpreter only searches for modules to import in the same directory that you ran python in.
>>
>> Beyond that, sometimes it's good to step back and check assumptions. If you run this example:
>>
>> https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/color_scatter.py
>>
>> That will conform that Bokeh itself is installed and working correctly (requires NumPy be installed as well), and if you run this example:
>>
>> https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/texas.py
>>
>> That will confirm that the sample data is downloaded and available properly.
>>
>> Thanks,
>>
>> Bryan
>>
>>
>> > On Dec 1, 2016, at 4:03 AM, Em Em <[email protected]> wrote:
>> >
>> > The error is still there, even after the install of the sample data, Bryan.
>> >
>> >
>> >
>> >
>> >
>> > On Thursday, December 1, 2016 at 1:26:10 AM UTC-5, Bryan Van de ven wrote:
>> > Hi,
>> >
>> > It looks like you need to install the sample data, which is distributed separately:
>> >
>> > http://bokeh.pydata.org/en/latest/docs/installation.html#sample-data
>> >
>> > Thanks,
>> >
>> > Bryan
>> >
>> > On Nov 30, 2016, at 21:54, Em Em <[email protected]> wrote:
>> >
>> >> Hello Brian, I tried the data.py file and it does not appear that the data was processed properly because I received the following error when i tried to call 'fertility'. :
>> >>
>> >>
>> >>
>> >>
>> >> As for getting the example code, I googled "gapminder bokeh"
>> >>
>> >>
>> >> On Wednesday, November 30, 2016 at 10:44:41 PM UTC-5, Bryan Van de ven wrote:
>> >> Hi Emily,
>> >>
>> >> In the GitHub repo, the data.py module is in the same directory as gapminder.py:
>> >>
>> >> https://github.com/bokeh/bokeh/tree/master/examples/howto/interactive_bubble
>> >>
>> >> It's also showing up for me in the bundled bconda Examples under the same dir:
>> >>
>> >> $ ls ~/anaconda/envs/bk123/Examples/bokeh/howto/interactive_bubble
>> >> __init__.py data.py gapminder.ipynb gapminder.py gapminder_styles.css gapminder_template.jinja
>> >>
>> >> Can you describe how you obtained the example code?
>> >>
>> >> In any case for now you can download data.py from the link above.
>> >>
>> >> Thanks,
>> >>
>> >> Bryan
>> >>
>> >> > On Nov 30, 2016, at 8:49 PM, Em Em <[email protected]> wrote:
>> >> >
>> >> > Yes, the source of the script is: https://github.com/bokeh/bokeh/blob/master/examples/howto/interactive_bubble/gapminder.py
>> >> >
>> >> > I ran the script, and the first error is: ImportError: No module named 'data'
>> >> >
>> >> >
>> >> >
>> >> > On Wednesday, November 30, 2016 at 9:37:36 PM UTC-5, Sarah Bird wrote:
>> >> > Hi Emily,
>> >> >
>> >> > Can you provide more context. What did you try and what happened? Where did you get the script from?
>> >> >
>> >> > The gapminder script is working for me, so we'll need more information to be sure about what went wrong.
>> >> >
>> >> > Best,
>> >> >
>> >> > Bird
>> >> >
>> >> > On 11/30/16 8:33 PM, Em Em wrote:
>> >> >> Hello there!
>> >> >>
>> >> >> Today is my first day playing with Bokeh and I am having a difficult time running the scripts available because it does not appear there is a complete script available for 0.12.3.
>> >> >>
>> >> >> I have been playing around with it all day, and it's time that this beginner in python (v 3.5.2) asks for help.
>> >> >>
>> >> >> Thank you so much!
>> >> >> --
>> >> >> 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 [email protected].
>> >> >> To post to this group, send email to [email protected].
>> >> >> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9c3e81a8-fb61-44e6-900c-80d3d74b1f87%40continuum.io.
>> >> >> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>> >> >
>> >> > --
>> >> > Sarah Bird
>> >> > Developer, Bokeh
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > 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 [email protected].
>> >> > To post to this group, send email to [email protected].
>> >> > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/43c1eea7-d7c4-4260-875e-00913598ccd7%40continuum.io.
>> >> > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>> >>
>> >>
>> >> --
>> >> 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 [email protected].
>> >> To post to this group, send email to [email protected].
>> >> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d0b76843-5d9f-416b-9576-3001738a7228%40continuum.io.
>> >> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>> >
>> > --
>> > 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 [email protected].
>> > To post to this group, send email to [email protected].
>> > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4991e47c-74ef-4a2a-981a-979c0e41f24a%40continuum.io.
>> > For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>>
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd49943b-669f-4f18-9c0f-5ab939761b91%40continuum.io.
>> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
>
>
> --
> 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 [email protected]ontinuum.io.
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c397c23e-578d-446c-8b6f-095bf72ec1f1%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/262114fa-2fcf-47e1-abc1-da3e62fa3960%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.