bokeh hangs when used in combination with IPython notebooks

Hi there,

first off: great library! I have been working with bokeh for a while now and it is a great piece of software. Please keep up the good work.

But now my actual problem: I am trying to use bokeh in combination with iPython notebooks and it simply does not work. The iPython notebook keeps telling me it is busy and does not allow any further interaction (cells, iPython notebook buttons…). Below is a minimal code example:

import bokeh.plotting
bokeh.plotting.output_notebook()

``

It reports that BokehJS has been successfully loaded but the status remains busy. Below you will find the Chome console output:

Default extension for cell metadata editing loaded.

rawcell.js:87 Raw Cell Format toolbar preset loaded.

slideshow.js:48 Slideshow extension for metadata editing loaded.

main.js:29 patching CM for undefined indent

http://localhost:8888/static/fonts/fontawesome-webfont.woff?v=4.1.0 Failed to load resource: the server responded with a status of 404 (Not Found)

http://localhost:8888/static/fonts/fontawesome-webfont.ttf?v=4.1.0 Failed to load resource: the server responded with a status of 404 (Not Found)

kernel.js:124 Kernel started: 0ab24091-b7f5-4d1a-86ea-7bec5d104856

kernel.js:151 Starting WebSockets: ws://localhost:8888/api/kernels/0ab24091-b7f5-4d1a-86ea-7bec5d104856

VM234:22 Bokeh: setting prefix to /

VM234:25 Bokeh: setting log level to: ‘info’

``

I tried variations of this minimal example with url=‘default’ as explicit parameter to output_notebook() as well as separating them to different iPython notebook cells. The code is not executed double and always at the start of the script just like the documentation requests. Here is some information about my setup:

Fedora Linux 21 4.0.4-202.fc21.x86_64

Python 2.7.8

iPython 2.4.1

bokeh 0.9.0 (pip)

I tested it in two browsers, Chrome as well as Firefox, version 43.0.2357.125 (64-bit) or 38.0.5 respectively. Both show the very same behavior. Rebooting machine/iPython notebook server did not change anything. There is some strange thing that I observed, though. If I try to run other code lines directly after output_notebook() in the same cell as that call, they will actually be executed and display a plot. Since I would like to use the iPython notebook in an interactive fashion, just running the notebook in whole is not acceptable.

Any clues what I am doing wrong and/or needs to be fixed in bokeh/iPython/…?

Kind regards,

Markus

Well, this is weird… can you file an issue for this in the repo… the big changes in the notebook support landed for 0.8.2, but I can not see the issue with 0.8.2, so it seems something introduced later if making troubles…
Additionally, we did not see this because it is working OK with IPython 3.x series. So the immediate workaround is upgrade IPython, but we should investigate the issue further…

···

On Wed, Jun 24, 2015 at 11:34 AM, [email protected] wrote:

Hi there,

first off: great library! I have been working with bokeh for a while now and it is a great piece of software. Please keep up the good work.

But now my actual problem: I am trying to use bokeh in combination with iPython notebooks and it simply does not work. The iPython notebook keeps telling me it is busy and does not allow any further interaction (cells, iPython notebook buttons…). Below is a minimal code example:

import bokeh.plotting
bokeh.plotting.output_notebook()

``

It reports that BokehJS has been successfully loaded but the status remains busy. Below you will find the Chome console output:

Default extension for cell metadata editing loaded.

rawcell.js:87 Raw Cell Format toolbar preset loaded.

slideshow.js:48 Slideshow extension for metadata editing loaded.

main.js:29 patching CM for undefined indent

http://localhost:8888/static/fonts/fontawesome-webfont.woff?v=4.1.0 Failed to load resource: the server responded with a status of 404 (Not Found)

http://localhost:8888/static/fonts/fontawesome-webfont.ttf?v=4.1.0 Failed to load resource: the server responded with a status of 404 (Not Found)

kernel.js:124 Kernel started: 0ab24091-b7f5-4d1a-86ea-7bec5d104856

kernel.js:151 Starting WebSockets: ws://localhost:8888/api/kernels/0ab24091-b7f5-4d1a-86ea-7bec5d104856

VM234:22 Bokeh: setting prefix to /

VM234:25 Bokeh: setting log level to: ‘info’

``

I tried variations of this minimal example with url=‘default’ as explicit parameter to output_notebook() as well as separating them to different iPython notebook cells. The code is not executed double and always at the start of the script just like the documentation requests. Here is some information about my setup:

Fedora Linux 21 4.0.4-202.fc21.x86_64

Python 2.7.8

iPython 2.4.1

bokeh 0.9.0 (pip)

I tested it in two browsers, Chrome as well as Firefox, version 43.0.2357.125 (64-bit) or 38.0.5 respectively. Both show the very same behavior. Rebooting machine/iPython notebook server did not change anything. There is some strange thing that I observed, though. If I try to run other code lines directly after output_notebook() in the same cell as that call, they will actually be executed and display a plot. Since I would like to use the iPython notebook in an interactive fashion, just running the notebook in whole is not acceptable.

Any clues what I am doing wrong and/or needs to be fixed in bokeh/iPython/…?

Kind regards,

Markus

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/65d87b0d-e421-4082-b57b-022a090f44ca%40continuum.io.

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

Damián Avila

Continuum Analytics

[email protected]

Hi Markus,

As a point of reference can you report on whether you can reproduce this with newer versions of IPython? We have many devs and users that use Bokeh in the notebook, every day. Additionally it is tested on every GH commit on our Continuous Integration system. However, there are many, many potential version and platform configurations, perhaps there is an issue with this one in particular. We simply don't have the resources to cover all the possible combinations regularly but we can certainly try to address any particular ones that come to our attention.

Bryan

···

On Jun 24, 2015, at 9:34 AM, [email protected] wrote:

Hi there,

first off: great library! I have been working with bokeh for a while now and it is a great piece of software. Please keep up the good work.

But now my actual problem: I am trying to use bokeh in combination with iPython notebooks and it simply does not work. The iPython notebook keeps telling me it is busy and does not allow any further interaction (cells, iPython notebook buttons...). Below is a minimal code example:

import bokeh.plotting
bokeh.plotting.output_notebook()

It reports that BokehJS has been successfully loaded but the status remains busy. Below you will find the Chome console output:

Default extension for cell metadata editing loaded.
rawcell.js:87 Raw Cell Format toolbar preset loaded.
slideshow.js:48 Slideshow extension for metadata editing loaded.
main.js:29 patching CM for undefined indent
http://localhost:8888/static/fonts/fontawesome-webfont.woff?v=4.1.0 Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8888/static/fonts/fontawesome-webfont.ttf?v=4.1.0 Failed to load resource: the server responded with a status of 404 (Not Found)
kernel.js:124 Kernel started: 0ab24091-b7f5-4d1a-86ea-7bec5d104856
kernel.js:151 Starting WebSockets: ws://localhost:8888/api/kernels/0ab24091-b7f5-4d1a-86ea-7bec5d104856
VM234:22 Bokeh: setting prefix to /
VM234:25 Bokeh: setting log level to: 'info'

I tried variations of this minimal example with url='default' as explicit parameter to output_notebook() as well as separating them to different iPython notebook cells. The code is not executed double and always at the start of the script just like the documentation requests. Here is some information about my setup:

Fedora Linux 21 4.0.4-202.fc21.x86_64
Python 2.7.8
iPython 2.4.1
bokeh 0.9.0 (pip)

I tested it in two browsers, Chrome as well as Firefox, version 43.0.2357.125 (64-bit) or 38.0.5 respectively. Both show the very same behavior. Rebooting machine/iPython notebook server did not change anything. There is some strange thing that I observed, though. If I try to run other code lines directly after output_notebook() in the same cell as that call, they will actually be executed and display a plot. Since I would like to use the iPython notebook in an interactive fashion, just running the notebook in whole is not acceptable.

Any clues what I am doing wrong and/or needs to be fixed in bokeh/iPython/...?

Kind regards,
Markus

--
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/65d87b0d-e421-4082-b57b-022a090f44ca%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.