Does Bokeh Server work with Python 2 or 3?

I seem to be having a lot of trouble running the app examples here:

Of all the examples, so far only the cross-filter works. When googling, I find out that in some cases this is due to imported functions that are available in python 3, but not 2.

What are the requirements for these apps?

Thanks!

Hi,

Bokeh server works with both Python 2 and Python 3. What version of bokeh are you using?

If you are using a bokeh version that is below 0.11 you will not be able to run any of the bokeh server examples that are in the current master branch of the bokeh repo… Maybe just the cross-filter (since it currently hasn’t been full ported yet, IIRC). So, from what you mention regarding only cross-filter working fork I’d be tempted to say that an older bokeh version is the reason of your issues.

So I’d suggest checking your bokeh version and updating to the latest dev build.

Thank you

Fabio

···

On Thu, Dec 17, 2015 at 8:50 AM, [email protected] wrote:

I seem to be having a lot of trouble running the app examples here:
https://github.com/bokeh/bokeh/tree/master/examples/app

Of all the examples, so far only the cross-filter works. When googling, I find out that in some cases this is due to imported functions that are available in python 3, but not 2.

What are the requirements for these apps?

Thanks!

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/910d2029-30bb-4679-812e-17e6033b791f%40continuum.io.

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

Fabio Pliger

Senior Software Engineer, Bokeh

I believe lru_cache snuck into the stocks example (my fault) which is python 3 only. I would expect sliders, fourier_animated, and clustering to work with Python 2, though. They will definitely all work with Python 2 before the full release.

Bryan

···

On Dec 17, 2015, at 9:01 AM, Fabio Pliger <[email protected]> wrote:

Hi,

Bokeh server works with both Python 2 and Python 3. What version of bokeh are you using?

If you are using a bokeh version that is below 0.11 you will not be able to run any of the bokeh server examples that are in the current master branch of the bokeh repo.. Maybe just the cross-filter (since it currently hasn't been full ported yet, IIRC). So, from what you mention regarding only cross-filter working fork I'd be tempted to say that an older bokeh version is the reason of your issues.

So I'd suggest checking your bokeh version and updating to the latest dev build.

Thank you

Fabio

On Thu, Dec 17, 2015 at 8:50 AM, <[email protected]> wrote:
I seem to be having a lot of trouble running the app examples here:
https://github.com/bokeh/bokeh/tree/master/examples/app

Of all the examples, so far only the cross-filter works. When googling, I find out that in some cases this is due to imported functions that are available in python 3, but not 2.

What are the requirements for these apps?

Thanks!

--
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/910d2029-30bb-4679-812e-17e6033b791f%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
Fabio Pliger
Senior Software Engineer, 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/CAPVmnqA%2BxCBd8zK6EkBTdVVFZXq0Gg_5DZV0DWcySHRj_EaRbg%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

I just confirmed that all of these work for me on OSX with python 2. I will note that clustering also requires scikit-learn to be installed (also noted in the README) Are you running on Windows by any chance? There are some known issues there we still have to sort out. Otherwise, can you open an issue with as much detail (versions, platform, etc) as possible about what you are seeing?

Bryan

···

On Dec 17, 2015, at 9:11 AM, Bryan Van de Ven <[email protected]> wrote:

I believe lru_cache snuck into the stocks example (my fault) which is python 3 only. I would expect sliders, fourier_animated, and clustering to work with Python 2, though. They will definitely all work with Python 2 before the full release.

Bryan

On Dec 17, 2015, at 9:01 AM, Fabio Pliger <[email protected]> wrote:

Hi,

Bokeh server works with both Python 2 and Python 3. What version of bokeh are you using?

If you are using a bokeh version that is below 0.11 you will not be able to run any of the bokeh server examples that are in the current master branch of the bokeh repo.. Maybe just the cross-filter (since it currently hasn't been full ported yet, IIRC). So, from what you mention regarding only cross-filter working fork I'd be tempted to say that an older bokeh version is the reason of your issues.

So I'd suggest checking your bokeh version and updating to the latest dev build.

Thank you

Fabio

On Thu, Dec 17, 2015 at 8:50 AM, <[email protected]> wrote:
I seem to be having a lot of trouble running the app examples here:
https://github.com/bokeh/bokeh/tree/master/examples/app

Of all the examples, so far only the cross-filter works. When googling, I find out that in some cases this is due to imported functions that are available in python 3, but not 2.

What are the requirements for these apps?

Thanks!

--
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/910d2029-30bb-4679-812e-17e6033b791f%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
Fabio Pliger
Senior Software Engineer, 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/CAPVmnqA%2BxCBd8zK6EkBTdVVFZXq0Gg_5DZV0DWcySHRj_EaRbg%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks again for everyone’s incredibly fast help. I am running Windows 8, x64, with the newest Anaconda 2.7 32 bit package. My Bokeh version is 0.10

Some feedback on my errors:

When I try the clustering example: AttributeError: ‘Document’ object has no attribute ‘add_root’

Same error with fourier_animated and sliders

When I try timeout_stocks.py: RuntimeError: bokeh sample data directory does not exist, please execute bokeh.sampledata.download()

···

On Thursday, 17 December 2015 10:21:04 UTC-5, Bryan Van de ven wrote:

I just confirmed that all of these work for me on OSX with python 2. I will note that clustering also requires scikit-learn to be installed (also noted in the README) Are you running on Windows by any chance? There are some known issues there we still have to sort out. Otherwise, can you open an issue with as much detail (versions, platform, etc) as possible about what you are seeing?

Bryan

On Dec 17, 2015, at 9:11 AM, Bryan Van de Ven [email protected] wrote:

I believe lru_cache snuck into the stocks example (my fault) which is python 3 only. I would expect sliders, fourier_animated, and clustering to work with Python 2, though. They will definitely all work with Python 2 before the full release.

Bryan

On Dec 17, 2015, at 9:01 AM, Fabio Pliger [email protected] wrote:

Hi,

Bokeh server works with both Python 2 and Python 3. What version of bokeh are you using?

If you are using a bokeh version that is below 0.11 you will not be able to run any of the bokeh server examples that are in the current master branch of the bokeh repo… Maybe just the cross-filter (since it currently hasn’t been full ported yet, IIRC). So, from what you mention regarding only cross-filter working fork I’d be tempted to say that an older bokeh version is the reason of your issues.

So I’d suggest checking your bokeh version and updating to the latest dev build.

Thank you

Fabio

On Thu, Dec 17, 2015 at 8:50 AM, [email protected] wrote:

I seem to be having a lot of trouble running the app examples here:

https://github.com/bokeh/bokeh/tree/master/examples/app

Of all the examples, so far only the cross-filter works. When googling, I find out that in some cases this is due to imported functions that are available in python 3, but not 2.

What are the requirements for these apps?

Thanks!


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/910d2029-30bb-4679-812e-17e6033b791f%40continuum.io.

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


Fabio Pliger

Senior Software Engineer, 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/CAPVmnqA%2BxCBd8zK6EkBTdVVFZXq0Gg_5DZV0DWcySHRj_EaRbg%40mail.gmail.com.

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

Thanks Fabio. I tried the dev version yesterday. I quickly realized that the dev version does not appear as a system command. I was not sure how to run the server from the dev version.

The instructions say to navigate to the install directory which is Anaconda\Lib\sitepackages and then to run python bokeh-server

However this did not run for me.

···

On Thursday, 17 December 2015 10:01:30 UTC-5, Fabio Pliger wrote:

Hi,

Bokeh server works with both Python 2 and Python 3. What version of bokeh are you using?

If you are using a bokeh version that is below 0.11 you will not be able to run any of the bokeh server examples that are in the current master branch of the bokeh repo… Maybe just the cross-filter (since it currently hasn’t been full ported yet, IIRC). So, from what you mention regarding only cross-filter working fork I’d be tempted to say that an older bokeh version is the reason of your issues.

So I’d suggest checking your bokeh version and updating to the latest dev build.

Thank you

Fabio

On Thu, Dec 17, 2015 at 8:50 AM, [email protected] wrote:

I seem to be having a lot of trouble running the app examples here:
https://github.com/bokeh/bokeh/tree/master/examples/app

Of all the examples, so far only the cross-filter works. When googling, I find out that in some cases this is due to imported functions that are available in python 3, but not 2.

What are the requirements for these apps?

Thanks!

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/910d2029-30bb-4679-812e-17e6033b791f%40continuum.io.

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


Fabio Pliger

Senior Software Engineer, Bokeh

Ah, that's one issue. The examples in master rely on the completely new Bokeh server that is not in 0.10 you will need to install a "dev build" or wait for the full 0.11 release on Jan 6. You can use these instructions to install a dev build:

  <no title> — Bokeh 3.3.2 Documentation

But also a mentioned, there are some kinks to still work out on Windows:

  https://github.com/bokeh/bokeh/issues/3305

Thanks,

Bryan

···

On Dec 17, 2015, at 10:42 AM, RedRaven <[email protected]> wrote:

Thanks again for everyone's incredibly fast help. I am running Windows 8, x64, with the newest Anaconda 2.7 32 bit package. My Bokeh version is 0.10

Some feedback on my errors:

When I try the clustering example: AttributeError: 'Document' object has no attribute 'add_root'

Same error with fourier_animated and sliders

When I try timeout_stocks.py: RuntimeError: bokeh sample data directory does not exist, please execute bokeh.sampledata.download()

On Thursday, 17 December 2015 10:21:04 UTC-5, Bryan Van de ven wrote:
I just confirmed that all of these work for me on OSX with python 2. I will note that clustering also requires scikit-learn to be installed (also noted in the README) Are you running on Windows by any chance? There are some known issues there we still have to sort out. Otherwise, can you open an issue with as much detail (versions, platform, etc) as possible about what you are seeing?

Bryan

> On Dec 17, 2015, at 9:11 AM, Bryan Van de Ven <[email protected]> wrote:
>
>
> I believe lru_cache snuck into the stocks example (my fault) which is python 3 only. I would expect sliders, fourier_animated, and clustering to work with Python 2, though. They will definitely all work with Python 2 before the full release.
>
> Bryan
>
>
>> On Dec 17, 2015, at 9:01 AM, Fabio Pliger <[email protected]> wrote:
>>
>> Hi,
>>
>> Bokeh server works with both Python 2 and Python 3. What version of bokeh are you using?
>>
>> If you are using a bokeh version that is below 0.11 you will not be able to run any of the bokeh server examples that are in the current master branch of the bokeh repo.. Maybe just the cross-filter (since it currently hasn't been full ported yet, IIRC). So, from what you mention regarding only cross-filter working fork I'd be tempted to say that an older bokeh version is the reason of your issues.
>>
>> So I'd suggest checking your bokeh version and updating to the latest dev build.
>>
>> Thank you
>>
>> Fabio
>>
>> On Thu, Dec 17, 2015 at 8:50 AM, <[email protected]> wrote:
>> I seem to be having a lot of trouble running the app examples here:
>> https://github.com/bokeh/bokeh/tree/master/examples/app
>>
>> Of all the examples, so far only the cross-filter works. When googling, I find out that in some cases this is due to imported functions that are available in python 3, but not 2.
>>
>> What are the requirements for these apps?
>>
>> Thanks!
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
>> To post to this group, send email to bo...@continuum.io.
>> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/910d2029-30bb-4679-812e-17e6033b791f%40continuum.io\.
>> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
>>
>>
>>
>> --
>> Fabio Pliger
>> Senior Software Engineer, 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 bokeh+un...@continuum.io.
>> To post to this group, send email to bo...@continuum.io.
>> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAPVmnqA%2BxCBd8zK6EkBTdVVFZXq0Gg_5DZV0DWcySHRj_EaRbg%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/f348a04a-ae9c-4412-9400-1a2611c6980c%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.