Simple Bokeh example with widgets

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

Hi Armen,

Right now the widgets do require Bokeh server, because that is how the Javascript events in the web page trigger callbacks on the Python side. Is there some reason you can’t run bokeh-server?

-Peter

···

On Wed, Jul 30, 2014 at 4:16 PM, Armen Alexanian [email protected] wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

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/6d6288ff-8acd-4160-af4c-d21f2c72d64b%40continuum.io.

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

Thanks Peter! I read somewhere that bokeh-server doesn’t work well with Windows; however, I can try to run it anyway. Are there instructions on the main site? I have a graph that’s working well and I’d like to be able to restrict the data based on the items in a Select box.

···

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

Oh, that's kind of not true. It *is* true that getting a redis binary on
Windows is kind of annoying, but you can run "bokeh-server --backend
memory" and it'll work fine.

-Peter

···

On Wed, Jul 30, 2014 at 4:27 PM, Armen Alexanian <[email protected]> wrote:

Thanks Peter! I read somewhere that bokeh-server doesn't work well with
Windows; however, I can try to run it anyway. Are there instructions on
the main site?

minor correction:

  --backend=memory

with the '=' This backwind is not persistent through server restarts. There is also:

  --backend=shelve

that you can try, which is persistent.

Bryan

···

On Jul 30, 2014, at 9:30 PM, Peter Wang <[email protected]> wrote:

On Wed, Jul 30, 2014 at 4:27 PM, Armen Alexanian <[email protected]> wrote:
Thanks Peter! I read somewhere that bokeh-server doesn't work well with Windows; however, I can try to run it anyway. Are there instructions on the main site?

Oh, that's kind of not true. It *is* true that getting a redis binary on Windows is kind of annoying, but you can run "bokeh-server --backend memory" and it'll work fine.

-Peter

--
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/CABGrp%2B_JNz0ZTqEyu7qcBJ%2BeW1ZJbPTcKd9rLjQ5bYq2RV44Rw%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks so much Peter and Bryan! I’ve really enjoyed working with Bokeh and I’m excited to have started doing so before the 1.0 release.

···

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

Hi Bryan,

When I enter “bokeh-server --backend=memory” into Spyder or the IPython console, I get the error “can’t assign to operator”. Am I entering it in the right place?

Thanks,

Armen

···

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

Hi Armen,

bokeh-server is a separate application you need to run, not a function. You should execute it in your bash shell (if you are on linux or OSX) or in the cmd shell (if you are on windows). Let us know if you need more assistance!

Bryan

···

On Jul 30, 2014, at 11:37 PM, Armen Alexanian <[email protected]> wrote:

Hi Bryan,

When I enter "bokeh-server --backend=memory" into Spyder or the IPython console, I get the error "can't assign to operator". Am I entering it in the right place?

Thanks,
Armen

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:
Hi,

I'm new to Bokeh and Python, though I've made some great progress on a visualization I'm working on. I've tried the three Bokeh examples with widgets but can't get any of them to work. I'm not sure if it's because I'm using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!
Armen

--
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/4fa0176f-fb76-4dcc-8114-02127b2ec7ca%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

In the IPython console, you can probably do:

!bokeh-server --backend=memory

I mean prepend the ! execute on the shell…

···

On Wed, Jul 30, 2014 at 7:40 PM, Bryan Van de Ven [email protected] wrote:

Hi Armen,

bokeh-server is a separate application you need to run, not a function. You should execute it in your bash shell (if you are on linux or OSX) or in the cmd shell (if you are on windows). Let us know if you need more assistance!

Bryan

On Jul 30, 2014, at 11:37 PM, Armen Alexanian [email protected] wrote:

Hi Bryan,

When I enter “bokeh-server --backend=memory” into Spyder or the IPython console, I get the error “can’t assign to operator”. Am I entering it in the right place?

Thanks,

Armen

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

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/4fa0176f-fb76-4dcc-8114-02127b2ec7ca%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/96E5683F-24C2-419D-A6D3-D1C42B3D3BA6%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan,

When I run it from the cmd line I get an error (image attached) saying “No module named ‘backbone’”. Do I need to be in a specific directory?

Thanks again,

Armen

···

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

Armen,

No yo hare doing everything right. This was a small problem affecting Python 3 in version 0.5. I think it should have been fixed in 0.5.1, however. What version are you running? you can check by executing:

import bokeh
bokeh.__version__

in the ipython or python terminal.

This is definitely fixed in master, so if nothing else we will get a dev build put up in the next day that you can install from binstar.

Bryan

···

On Jul 30, 2014, at 11:45 PM, Armen Alexanian <[email protected]> wrote:

Hi Bryan,

When I run it from the cmd line I get an error (image attached) saying "No module named 'backbone'". Do I need to be in a specific directory?

Thanks again,
Armen

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:
Hi,

I'm new to Bokeh and Python, though I've made some great progress on a visualization I'm working on. I've tried the three Bokeh examples with widgets but can't get any of them to work. I'm not sure if it's because I'm using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!
Armen

--
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/f757cea8-24ab-4ff3-b7aa-46a02854e0df%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
<bokeh_error.PNG>

Hi Damian,

That does seem to have the same effect as running from the cmd line. However, I get the same error as I did when running from the cmd line:

!bokeh-server --backend=memory

Bokeh Server Configuration

···

On Wed, Jul 30, 2014 at 3:44 PM, Damian Avila [email protected] wrote:

In the IPython console, you can probably do:

!bokeh-server --backend=memory

I mean prepend the ! execute on the shell…

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/CAM9Ly3Gso_ZpCyEM42Nk_MPA8WjxqW6AyVqHRXodOMuVK8COkg%40mail.gmail.com.

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

On Wed, Jul 30, 2014 at 7:40 PM, Bryan Van de Ven [email protected] wrote:

Hi Armen,

bokeh-server is a separate application you need to run, not a function. You should execute it in your bash shell (if you are on linux or OSX) or in the cmd shell (if you are on windows). Let us know if you need more assistance!

Bryan

On Jul 30, 2014, at 11:37 PM, Armen Alexanian [email protected] wrote:

Hi Bryan,

When I enter “bokeh-server --backend=memory” into Spyder or the IPython console, I get the error “can’t assign to operator”. Am I entering it in the right place?

Thanks,

Armen

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

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/4fa0176f-fb76-4dcc-8114-02127b2ec7ca%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/96E5683F-24C2-419D-A6D3-D1C42B3D3BA6%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

As a quick fix, you can also edit the file in question if you feel up to it. In the file

  C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\server\views\data.py

on line 5, change
  
  from backbone import init_bokeh

to

  from .backbone import init_bokeh

But as I said I think this fix is in 0.5.1. Sorry for the trouble, we need to add some more stringent tests to make sure relative imports like that don't sneak in.

Bryan

···

On Jul 30, 2014, at 11:49 PM, Armen Alexanian <[email protected]> wrote:

Hi Damian,

That does seem to have the same effect as running from the cmd line. However, I get the same error as I did when running from the cmd line:

!bokeh-server --backend=memory

Bokeh Server Configuration

listening : 127.0.0.1:5006
backend : memory
python options : debug:OFF, verbose:OFF, filter-logs:OFF, multi-user:OFF
js options : splitjs:OFF, debugjs:OFF
data-directory : None

2014-07-30 15:46:26,073:INFO:bokeh.server.start:no gevent - your websockets won't work
Traceback (most recent call last):
  File "C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\Scripts\bokeh-server-script.py", line 7, in <module>
    bokeh.server.run()
  File "C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\server\__init__.py", line 170, in run
    start_server(args)
  File "C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\server\__init__.py", line 185, in start_server
    data_directory=args.data_directory)
  File "C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\server\start.py", line 62, in prepare_app
    from .views import deps
  File "C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\server\views\deps.py", line 1, in <module>
    from . import (main, backbone, websocket, statics, data,
  File "C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\server\views\data.py", line 5, in <module>
    from backbone import init_bokeh
ImportError: No module named 'backbone'

Thanks so much for your help!
Armen

On Wed, Jul 30, 2014 at 3:44 PM, Damian Avila <[email protected]> wrote:
In the IPython console, you can probably do:

!bokeh-server --backend=memory

I mean prepend the ! execute on the shell...

On Wed, Jul 30, 2014 at 7:40 PM, Bryan Van de Ven <[email protected]> wrote:
Hi Armen,

bokeh-server is a separate application you need to run, not a function. You should execute it in your bash shell (if you are on linux or OSX) or in the cmd shell (if you are on windows). Let us know if you need more assistance!

Bryan

On Jul 30, 2014, at 11:37 PM, Armen Alexanian <[email protected]> wrote:

> Hi Bryan,
>
> When I enter "bokeh-server --backend=memory" into Spyder or the IPython console, I get the error "can't assign to operator". Am I entering it in the right place?
>
> Thanks,
> Armen
>
> On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:
> Hi,
>
> I'm new to Bokeh and Python, though I've made some great progress on a visualization I'm working on. I've tried the three Bokeh examples with widgets but can't get any of them to work. I'm not sure if it's because I'm using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?
>
> Thanks very much!
> Armen
>
> --
> 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/4fa0176f-fb76-4dcc-8114-02127b2ec7ca%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/96E5683F-24C2-419D-A6D3-D1C42B3D3BA6%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/CAM9Ly3Gso_ZpCyEM42Nk_MPA8WjxqW6AyVqHRXodOMuVK8COkg%40mail.gmail.com\.

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/CALLGW%3DwMk52KEGSY81WbodkJsv59HWKGV%3D8n6LmGn08yx6k1dw%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Brian,

It looks like I’m running 0.5.1.

In [26]: runfile(‘H:/Work Files/Python Programming/Scripts/Bokeh_Server.py’, wdir=‘H:/Work Files/Python Programming/Scripts’)

0.5.1

Thanks very much!

Armen

···

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

OK, I guess the fix was made after the 0.5.1 release. You can make the change described in my last message, or alternatively we will make a new dev build available soon.

Bryan

···

On Jul 30, 2014, at 11:53 PM, Armen Alexanian <[email protected]> wrote:

Hi Brian,

It looks like I'm running 0.5.1.

In [26]: runfile('H:/Work Files/Python Programming/Scripts/Bokeh_Server.py', wdir='H:/Work Files/Python Programming/Scripts')
0.5.1

Thanks very much!
Armen

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:
Hi,

I'm new to Bokeh and Python, though I've made some great progress on a visualization I'm working on. I've tried the three Bokeh examples with widgets but can't get any of them to work. I'm not sure if it's because I'm using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!
Armen

--
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/4f627734-f7ec-437f-b355-f354d965f552%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Brian,

I made the change and it worked! Now my bokeh-server is running. When I went to that url, I got this message:

The first time you want to use bokehplots.com, you need to do the following:

    import bokeh
cloud = bokeh.Cloud()
cloud.register("myusername", "mypassword")
# or
cloud.login("myusername", "mypassword")
cloud.browser_login()

Then when I ran this script:

import bokeh

cloud = bokeh.Cloud()

cloud.register(“armenalexanian”, “mypassword”)

cloud.browser_login()

I got the error message:

File “H:/Work Files/Python Programming/Scripts/Bokeh_Server.py”, line 15, in

cloud = bokeh.Cloud()

AttributeError: ‘module’ object has no attribute ‘Cloud’

Thanks!

Armen

···

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

Armen,

My sincere apologies, you are running into every thing that was scrubbed right after 0.5.1. :slight_smile: There was a point that we intended to run a hosted cloud plot service for our users. Unfortunately, we have not had the resources to back this aspect of the project seriously yet. However, you can run your own server locally (as you have) and then you don't need a cloud service! For instance, with the bokeh-server running, execute the following code:

    import numpy as np
    from bokeh.plotting import *
    
    N = 80
    x = np.linspace(0, 4*np.pi, N)
    y = np.sin(x)

    output_server("line")
    line(x,y, color="blue")
    show()

That should open up a we browser to your locally running server with the plot on it. You can also navigate to http://localhost:5006/bokeh/ to see a list of the documents you have stored on to your local server. We look forward to the day we can launch a hosted cloud service for Bokeh ourselves, perhaps later this year. But in the mean time you can run the bokeh server yourself.

Thanks,

Bryan

···

On Jul 31, 2014, at 12:07 AM, Armen Alexanian <[email protected]> wrote:

Hi Brian,

I made the change and it worked! Now my bokeh-server is running. When I went to that url, I got this message:

The first time you want to use bokehplots.com, you need to do the following:
    import bokeh
    cloud = bokeh.Cloud()

    cloud.register("myusername", "mypassword")
    # or
    cloud.login("myusername", "mypassword")

    cloud.browser_login()

Then when I ran this script:

import bokeh
cloud = bokeh.Cloud()

cloud.register("armenalexanian", "mypassword")

cloud.browser_login()

I got the error message:

  File "H:/Work Files/Python Programming/Scripts/Bokeh_Server.py", line 15, in <module>
    cloud = bokeh.Cloud()

AttributeError: 'module' object has no attribute 'Cloud'

Thanks!
Armen

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:
Hi,

I'm new to Bokeh and Python, though I've made some great progress on a visualization I'm working on. I've tried the three Bokeh examples with widgets but can't get any of them to work. I'm not sure if it's because I'm using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!
Armen

--
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/46b089e6-673c-4cde-8ad8-cbead09f9621%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,

Thanks again for your help! That example worked great and I was able to see the line graph on my local bokeh-server at the url you specified. I then tried again using the population_server.py example and I got the following error:

File “parser.pyx”, line 332, in pandas.parser.TextReader.cinit (pandas\parser.c:3218)

File “parser.pyx”, line 559, in pandas.parser.TextReader._setup_parser_source (pandas\parser.c:5594)

OSError: File b’C:\Users\aalexanian/.bokeh\data\WPP2012_SA_DB03_POPULATION_QUINQUENNIAL.CSV’ does not exist

I’m almost there!

Thanks!

Armen

When I run the code for the first widgets example,

···

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

You need to download the bokeh.sampledata, just run this in a IPython console:

In [3]: import bokeh

In [4]: bokeh.sampledata.download()

And after that, you will be able to run it… I hope… :wink:

···

On Wed, Jul 30, 2014 at 9:13 PM, Armen Alexanian [email protected] wrote:

Hi Bryan,

Thanks again for your help! That example worked great and I was able to see the line graph on my local bokeh-server at the url you specified. I then tried again using the population_server.py example and I got the following error:

File “parser.pyx”, line 332, in pandas.parser.TextReader.cinit (pandas\parser.c:3218)

File “parser.pyx”, line 559, in pandas.parser.TextReader._setup_parser_source (pandas\parser.c:5594)

OSError: File b’C:\Users\aalexanian/.bokeh\data\WPP2012_SA_DB03_POPULATION_QUINQUENNIAL.CSV’ does not exist

I’m almost there!

Thanks!

Armen

When I run the code for the first widgets example,

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

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/30347ae7-be53-44a0-a4ea-6907a73af745%40continuum.io.

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

Thanks Damian! I will try that tomorrow and let you know.

···

On Wed, Jul 30, 2014 at 9:13 PM, Armen Alexanian [email protected] wrote:

Hi Bryan,

Thanks again for your help! That example worked great and I was able to see the line graph on my local bokeh-server at the url you specified. I then tried again using the population_server.py example and I got the following error:

File “parser.pyx”, line 332, in pandas.parser.TextReader.cinit (pandas\parser.c:3218)

File “parser.pyx”, line 559, in pandas.parser.TextReader._setup_parser_source (pandas\parser.c:5594)

OSError: File b’C:\Users\aalexanian/.bokeh\data\WPP2012_SA_DB03_POPULATION_QUINQUENNIAL.CSV’ does not exist

I’m almost there!

Thanks!

Armen

When I run the code for the first widgets example,

On Wednesday, July 30, 2014 1:16:41 PM UTC-7, Armen Alexanian wrote:

Hi,

I’m new to Bokeh and Python, though I’ve made some great progress on a visualization I’m working on. I’ve tried the three Bokeh examples with widgets but can’t get any of them to work. I’m not sure if it’s because I’m using Windows or on my company network. Would someone please post a very simple example of a script which shows how to put a Select widget on a webpage without linking to any external data sets or requiring Bokeh server?

Thanks very much!

Armen

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/30347ae7-be53-44a0-a4ea-6907a73af745%40continuum.io.

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