no method 'throttled_render'

Hi

I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with

import numpy as np

import bokeh.plotting as bkh

bkh.output_notebook()

N = 1000

x = np.linspace(0, 10, N)

y = np.linspace(0, 10, N)

xx, yy = np.meshgrid(x, y)

d = np.sin(xx)*np.cos(yy)

bkh.image(

image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=[“Spectral-11”],

x_range=[0, 10], y_range=[0, 10],

tools=“pan,wheel_zoom,box_zoom,reset,previewsave”, name=“image_example”

)

bkh.show() # open a browser

The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:

Javascript error adding output!

TypeError: Object # has no method ‘throttled_render’

See your browser Javascript console for more details.

Any ideas what the problem is?

Thanks

Can you give us information about the IPython version you are using, I can not reproduce it here…
In a IPython console:

import IPython

print(IPython.sys_info())

Thanks!

···

On Wed, Sep 10, 2014 at 8:41 PM, Rodolphe Conan [email protected] wrote:

Hi

I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with

import numpy as np

import bokeh.plotting as bkh

bkh.output_notebook()

N = 1000

x = np.linspace(0, 10, N)

y = np.linspace(0, 10, N)

xx, yy = np.meshgrid(x, y)

d = np.sin(xx)*np.cos(yy)

bkh.image(

image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=[“Spectral-11”],

x_range=[0, 10], y_range=[0, 10],

tools=“pan,wheel_zoom,box_zoom,reset,previewsave”, name=“image_example”

)

bkh.show() # open a browser

The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:

Javascript error adding output!

TypeError: Object # has no method ‘throttled_render’

See your browser Javascript console for more details.

Any ideas what the problem is?

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/cbfb41ef-3bd3-4b70-9b68-6350d9e9d10c%40continuum.io.

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

Additionally, can you runt this in the notebook and pass on the output:

  import bokeh
  bokeh.load_notebook(verbose=True)

Thanks,

Bryan

···

On Sep 11, 2014, at 8:58 AM, Damian Avila <[email protected]> wrote:

Can you give us information about the IPython version you are using, I can not reproduce it here...
In a IPython console:

import IPython
print(IPython.sys_info())

Thanks!

On Wed, Sep 10, 2014 at 8:41 PM, Rodolphe Conan <[email protected]> wrote:
Hi

I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with

import numpy as np
import bokeh.plotting as bkh
bkh.output_notebook()
N = 1000

x = np.linspace(0, 10, N)
y = np.linspace(0, 10, N)
xx, yy = np.meshgrid(x, y)
d = np.sin(xx)*np.cos(yy)
bkh.image(
    image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=["Spectral-11"],
    x_range=[0, 10], y_range=[0, 10],
    tools="pan,wheel_zoom,box_zoom,reset,previewsave", name="image_example"
)

bkh.show() # open a browser

The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:
Javascript error adding output!
TypeError: Object #<n> has no method 'throttled_render'
See your browser Javascript console for more details.

Any ideas what the problem is?

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/cbfb41ef-3bd3-4b70-9b68-6350d9e9d10c%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/CAM9Ly3FV4XVDWFJN0oGYnMy5P%2BR%3DfqUTLx%3DrT9oppXY%3DY_y3aw%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Damian

the output of
import IPython

print(IPython.sys_info())

is

 {'commit_hash': '681fd77',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': '/home/rconan/anaconda/lib/python2.7/site-packages/IPython',
'ipython_version': '2.1.0',
'os_name': 'posix',
'platform': 'Linux-3.12.9-1-ARCH-x86_64-with-glibc2.2.5',
'sys_executable': '/home/rconan/anaconda/bin/python',
'sys_platform': 'linux2',
'sys_version': '2.7.8 |Anaconda 2.0.1 (64-bit)| (default, Aug 21 2014, 18:22:21) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]'}
···

On Thursday, September 11, 2014 11:58:29 PM UTC+10, Damian Avila wrote:

Can you give us information about the IPython version you are using, I can not reproduce it here…
In a IPython console:

import IPython

print(IPython.sys_info())

Thanks!

On Wed, Sep 10, 2014 at 8:41 PM, Rodolphe Conan [email protected] wrote:

Hi

I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with

import numpy as np

import bokeh.plotting as bkh

bkh.output_notebook()

N = 1000

x = np.linspace(0, 10, N)

y = np.linspace(0, 10, N)

xx, yy = np.meshgrid(x, y)

d = np.sin(xx)*np.cos(yy)

bkh.image(

image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=[“Spectral-11”],

x_range=[0, 10], y_range=[0, 10],

tools=“pan,wheel_zoom,box_zoom,reset,previewsave”, name=“image_example”

)

bkh.show() # open a browser

The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:

Javascript error adding output!

TypeError: Object # has no method ‘throttled_render’

See your browser Javascript console for more details.

Any ideas what the problem is?

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/cbfb41ef-3bd3-4b70-9b68-6350d9e9d10c%40continuum.io.

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

Hi Bryan

import bokeh
bokeh.load_notebook(verbose=True)

gives
Using Settings:

Bokeh
version
0.5.2-605-g6e10e5e
BokehJS
js
inline
css
inline

···

On Friday, September 12, 2014 12:00:45 AM UTC+10, Bryan Van de ven wrote:

Additionally, can you runt this in the notebook and pass on the output:

    import bokeh
    bokeh.load_notebook(verbose=True)

Thanks,

Bryan

On Sep 11, 2014, at 8:58 AM, Damian Avila [email protected] wrote:

Can you give us information about the IPython version you are using, I can not reproduce it here…

In a IPython console:

import IPython

print(IPython.sys_info())

Thanks!

On Wed, Sep 10, 2014 at 8:41 PM, Rodolphe Conan [email protected] wrote:

Hi

I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with

import numpy as np

import bokeh.plotting as bkh

bkh.output_notebook()

N = 1000

x = np.linspace(0, 10, N)

y = np.linspace(0, 10, N)

xx, yy = np.meshgrid(x, y)

d = np.sin(xx)*np.cos(yy)

bkh.image(

image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=["Spectral-11"],
x_range=[0, 10], y_range=[0, 10],
tools="pan,wheel_zoom,box_zoom,reset,previewsave", name="image_example"

)

bkh.show() # open a browser

The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:

Javascript error adding output!

TypeError: Object # has no method ‘throttled_render’

See your browser Javascript console for more details.

Any ideas what the problem is?

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/cbfb41ef-3bd3-4b70-9b68-6350d9e9d10c%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/CAM9Ly3FV4XVDWFJN0oGYnMy5P%2BR%3DfqUTLx%3DrT9oppXY%3DY_y3aw%40mail.gmail.com.

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

Hi Rodolphe,

As you can see the notebook is not loading Bokeh version 0.6. It seems there is something amiss with your installation. I would suggest checking your PYTHONPATH to make sure that some other version of Bokeh that is being found first, and it probably would not hurt to clean anything bokeh related out of your site-packages. Have you ever installed in "develop" mode from source? I have seen problems like this occur when there is both a develop mode .pth file as well as a bokeh directory in site-packages although setup.py should warn about this now.

Bryan

···

On Sep 11, 2014, at 6:06 PM, Rodolphe Conan <[email protected]> wrote:

Hi Bryan

import bokeh
bokeh.load_notebook(verbose=True)
gives
Using Settings:

Bokeh version 0.5.2-605-g6e10e5e
BokehJS
js inline
css inline

On Friday, September 12, 2014 12:00:45 AM UTC+10, Bryan Van de ven wrote:
Additionally, can you runt this in the notebook and pass on the output:

        import bokeh
        bokeh.load_notebook(verbose=True)

Thanks,

Bryan

On Sep 11, 2014, at 8:58 AM, Damian Avila <[email protected]> wrote:

> Can you give us information about the IPython version you are using, I can not reproduce it here...
> In a IPython console:
>
> import IPython
> print(IPython.sys_info())
>
> Thanks!
>
> On Wed, Sep 10, 2014 at 8:41 PM, Rodolphe Conan <[email protected]> wrote:
> Hi
>
> I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with
>
> import numpy as np
> import bokeh.plotting as bkh
> bkh.output_notebook()
> N = 1000
>
> x = np.linspace(0, 10, N)
> y = np.linspace(0, 10, N)
> xx, yy = np.meshgrid(x, y)
> d = np.sin(xx)*np.cos(yy)
> bkh.image(
> image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=["Spectral-11"],
> x_range=[0, 10], y_range=[0, 10],
> tools="pan,wheel_zoom,box_zoom,reset,previewsave", name="image_example"
> )
>
> bkh.show() # open a browser
>
>
> The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:
> Javascript error adding output!
> TypeError: Object #<n> has no method 'throttled_render'
> See your browser Javascript console for more details.
>
> Any ideas what the problem is?
>
> Thanks
>

Hi Bryan
sorry for interruption!
I have had similar issue with installation (version differences b/w bokeh and bokehjs) due to messed up installation, during upgrading to latest master. What is the recommended way of installing bokeh from source(with respect to this issue)?

Thanks

···

On 12 Sep 2014 07:27, “Bryan Van de Ven” [email protected] wrote:

Hi Rodolphe,

As you can see the notebook is not loading Bokeh version 0.6. It seems there is something amiss with your installation. I would suggest checking your PYTHONPATH to make sure that some other version of Bokeh that is being found first, and it probably would not hurt to clean anything bokeh related out of your site-packages. Have you ever installed in “develop” mode from source? I have seen problems like this occur when there is both a develop mode .pth file as well as a bokeh directory in site-packages although setup.py should warn about this now.

Bryan

On Sep 11, 2014, at 6:06 PM, Rodolphe Conan [email protected] wrote:

Hi Bryan

import bokeh

bokeh.load_notebook(verbose=True)

gives

Using Settings:

Bokeh version 0.5.2-605-g6e10e5e

BokehJS

js inline

css inline

On Friday, September 12, 2014 12:00:45 AM UTC+10, Bryan Van de ven wrote:

Additionally, can you runt this in the notebook and pass on the output:

    import bokeh
    bokeh.load_notebook(verbose=True)

Thanks,

Bryan

On Sep 11, 2014, at 8:58 AM, Damian Avila [email protected] wrote:

Can you give us information about the IPython version you are using, I can not reproduce it here…

In a IPython console:

import IPython

print(IPython.sys_info())

Thanks!

On Wed, Sep 10, 2014 at 8:41 PM, Rodolphe Conan [email protected] wrote:

Hi

I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with

import numpy as np

import bokeh.plotting as bkh

bkh.output_notebook()

N = 1000

x = np.linspace(0, 10, N)

y = np.linspace(0, 10, N)

xx, yy = np.meshgrid(x, y)

d = np.sin(xx)*np.cos(yy)

bkh.image(

image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=["Spectral-11"],
x_range=[0, 10], y_range=[0, 10],
tools="pan,wheel_zoom,box_zoom,reset,previewsave", name="image_example"

)

bkh.show() # open a browser

The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:

Javascript error adding output!

TypeError: Object # has no method ‘throttled_render’

See your browser Javascript console for more details.

Any ideas what the problem is?

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/63279B63-4895-46A0-962C-340FE9638F2B%40continuum.io.

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

Tarun,

hopefully this is less of an issue nowadays, we have put some checks into setup.py to warn about some inconsistent or clearly wrong configurations. However, if you are having problems with finding the right versions of bokeh/bokehjhs, the surest course of action is:

1) Make sure there is only on place on your sys.path that bokeh is installed
2) delete everything bokeh related from that site-packages or path
3) re-install with

  python setup.py install --build_js

or

  python setup.py develop --build_js

Bryan

···

On Sep 12, 2014, at 4:50 AM, TARUN GABA <[email protected]> wrote:

Hi Bryan
sorry for interruption!
I have had similar issue with installation (version differences b/w bokeh and bokehjs) due to messed up installation, during upgrading to latest master. What is the recommended way of installing bokeh from source(with respect to this issue)?

Thanks
On 12 Sep 2014 07:27, "Bryan Van de Ven" <[email protected]> wrote:
Hi Rodolphe,

As you can see the notebook is not loading Bokeh version 0.6. It seems there is something amiss with your installation. I would suggest checking your PYTHONPATH to make sure that some other version of Bokeh that is being found first, and it probably would not hurt to clean anything bokeh related out of your site-packages. Have you ever installed in "develop" mode from source? I have seen problems like this occur when there is both a develop mode .pth file as well as a bokeh directory in site-packages although setup.py should warn about this now.

Bryan

On Sep 11, 2014, at 6:06 PM, Rodolphe Conan <[email protected]> wrote:

> Hi Bryan
>
> import bokeh
> bokeh.load_notebook(verbose=True)
> gives
> Using Settings:
>
> Bokeh version 0.5.2-605-g6e10e5e
> BokehJS
> js inline
> css inline
>
>
>
> On Friday, September 12, 2014 12:00:45 AM UTC+10, Bryan Van de ven wrote:
> Additionally, can you runt this in the notebook and pass on the output:
>
> import bokeh
> bokeh.load_notebook(verbose=True)
>
> Thanks,
>
> Bryan
>
> On Sep 11, 2014, at 8:58 AM, Damian Avila <[email protected]> wrote:
>
> > Can you give us information about the IPython version you are using, I can not reproduce it here...
> > In a IPython console:
> >
> > import IPython
> > print(IPython.sys_info())
> >
> > Thanks!
> >
> > On Wed, Sep 10, 2014 at 8:41 PM, Rodolphe Conan <[email protected]> wrote:
> > Hi
> >
> > I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with
> >
> > import numpy as np
> > import bokeh.plotting as bkh
> > bkh.output_notebook()
> > N = 1000
> >
> > x = np.linspace(0, 10, N)
> > y = np.linspace(0, 10, N)
> > xx, yy = np.meshgrid(x, y)
> > d = np.sin(xx)*np.cos(yy)
> > bkh.image(
> > image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=["Spectral-11"],
> > x_range=[0, 10], y_range=[0, 10],
> > tools="pan,wheel_zoom,box_zoom,reset,previewsave", name="image_example"
> > )
> >
> > bkh.show() # open a browser
> >
> >
> > The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:
> > Javascript error adding output!
> > TypeError: Object #<n> has no method 'throttled_render'
> > See your browser Javascript console for more details.
> >
> > Any ideas what the problem is?
> >
> > 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/63279B63-4895-46A0-962C-340FE9638F2B%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/CAHAono0xkj3TSSom7sV7B4-DC13gX1Zp2jtzUGN1-fHpENjNsw%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

So, I have seen something similar today. Two questions:

1) Are you using python setup.py "develop" or "install"?
2) can you try with browser caching disabled?

Bryan

···

On Sep 11, 2014, at 8:57 PM, Bryan Van de Ven <[email protected]> wrote:

Hi Rodolphe,

As you can see the notebook is not loading Bokeh version 0.6. It seems there is something amiss with your installation. I would suggest checking your PYTHONPATH to make sure that some other version of Bokeh that is being found first, and it probably would not hurt to clean anything bokeh related out of your site-packages. Have you ever installed in "develop" mode from source? I have seen problems like this occur when there is both a develop mode .pth file as well as a bokeh directory in site-packages although setup.py should warn about this now.

Bryan

On Sep 11, 2014, at 6:06 PM, Rodolphe Conan <[email protected]> wrote:

Hi Bryan

import bokeh
bokeh.load_notebook(verbose=True)
gives
Using Settings:

Bokeh version 0.5.2-605-g6e10e5e
BokehJS
js inline
css inline

On Friday, September 12, 2014 12:00:45 AM UTC+10, Bryan Van de ven wrote:
Additionally, can you runt this in the notebook and pass on the output:

       import bokeh
       bokeh.load_notebook(verbose=True)

Thanks,

Bryan

On Sep 11, 2014, at 8:58 AM, Damian Avila <[email protected]> wrote:

Can you give us information about the IPython version you are using, I can not reproduce it here...
In a IPython console:

import IPython
print(IPython.sys_info())

Thanks!

On Wed, Sep 10, 2014 at 8:41 PM, Rodolphe Conan <[email protected]> wrote:
Hi

I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with

import numpy as np
import bokeh.plotting as bkh
bkh.output_notebook()
N = 1000

x = np.linspace(0, 10, N)
y = np.linspace(0, 10, N)
xx, yy = np.meshgrid(x, y)
d = np.sin(xx)*np.cos(yy)
bkh.image(
   image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=["Spectral-11"],
   x_range=[0, 10], y_range=[0, 10],
   tools="pan,wheel_zoom,box_zoom,reset,previewsave", name="image_example"
)

bkh.show() # open a browser

The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:
Javascript error adding output!
TypeError: Object #<n> has no method 'throttled_render'
See your browser Javascript console for more details.

Any ideas what the problem is?

Thanks