Bokeh - Embedding in PyQt is not working

Hello

The question in short

Bokeh charts do not work properly when accessing web content through a QWebView. Loading and dragging is very slow, and the Tools do not work.

For a test, accessing anything in the Bokeh Gallery manifests this issue.

Any ideas if this can be fixed in the setups of the QWebView?

Detailed question

This question partially connects to this other question on google groups and this question on stack overflow.

I have a PyQt GUI with a QWebView that I use to browse the internet. If I navigate to any chart of the bokeh Gallery, the loading is extremely slow, and the bokeh Tools do not work.

Are there QWebSettings that one needs to set in order to fix this, as suggested in the post on SO?

(for context: my goal would be to use the bokeh server to host charts and widgets to be used through the QWebView, or at the very least to use bokeh to produce static content to show in the QWebView)

Thanks!

Hi pythonic,

Unfortunately I don't know anyone who has any experience using Bokeh with Qt, so you may be exploring new territory. I will say that, as JS libraries go, Bokeh is fairly large, sophisticated, and demanding. Performance is certainly affected by the quality of level of development of the underlying browser engine and canvas implementation. I did find this SO post that may be relevant:

  http://stackoverflow.com/questions/29055475/qwebview-or-qwebengineview

It looks as though QWebView is being deprecated in favor of QWebEngineView, perhaps that might offer a better experience? Otherwise, I think you might have more luck getting detailed technical advice on QWebView on a Qt oriented list or forum.

If you do find a solution or workaround, please let us know, we can include it in the Bokeh docs.

Thanks,

Bryan

···

On May 14, 2015, at 1:23 PM, Pythonic <[email protected]> wrote:

Hello

The question in short

Bokeh charts do not work properly when accessing web content through a QWebView. Loading and dragging is very slow, and the Tools do not work.

For a test, accessing anything in the Bokeh Gallery manifests this issue.

Any ideas if this can be fixed in the setups of the QWebView?

Detailed question

This question partially connects to this other question on google groups and this question on stack overflow.

I have a PyQt GUI with a QWebView that I use to browse the internet. If I navigate to any chart of the bokeh Gallery, the loading is extremely slow, and the bokeh Tools do not work.

Are there QWebSettings that one needs to set in order to fix this, as suggested in the post on SO?

(for context: my goal would be to use the bokeh server to host charts and widgets to be used through the QWebView, or at the very least to use bokeh to produce static content to show in the QWebView)

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/fae107ae-3b67-492d-9af0-559abe3e06e5%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

As a complement, I did try to manipulate via QwebView the recent https://github.com/yhat/rodeo :

  • under PyQt4-4.11, the complex editor part is not working well,
  • under PyQt5-5.4.1, the view image part is not working at all (but the editor is working).

==> I don’t know if the big Qt5.5 upgrade/switch to Chromium will be good, but current QWebView is disappointing.

···

On Thursday, May 14, 2015 at 8:38:22 PM UTC+2, Bryan Van de ven wrote:

Hi pythonic,

Unfortunately I don’t know anyone who has any experience using Bokeh with Qt, so you may be exploring new territory. I will say that, as JS libraries go, Bokeh is fairly large, sophisticated, and demanding. Performance is certainly affected by the quality of level of development of the underlying browser engine and canvas implementation. I did find this SO post that may be relevant:

    [http://stackoverflow.com/questions/29055475/qwebview-or-qwebengineview](http://stackoverflow.com/questions/29055475/qwebview-or-qwebengineview)

It looks as though QWebView is being deprecated in favor of QWebEngineView, perhaps that might offer a better experience? Otherwise, I think you might have more luck getting detailed technical advice on QWebView on a Qt oriented list or forum.

If you do find a solution or workaround, please let us know, we can include it in the Bokeh docs.

Thanks,

Bryan

On May 14, 2015, at 1:23 PM, Pythonic [email protected] wrote:

Hello

The question in short

Bokeh charts do not work properly when accessing web content through a QWebView. Loading and dragging is very slow, and the Tools do not work.

For a test, accessing anything in the Bokeh Gallery manifests this issue.

Any ideas if this can be fixed in the setups of the QWebView?

Detailed question

This question partially connects to this other question on google groups and this question on stack overflow.

I have a PyQt GUI with a QWebView that I use to browse the internet. If I navigate to any chart of the bokeh Gallery, the loading is extremely slow, and the bokeh Tools do not work.

Are there QWebSettings that one needs to set in order to fix this, as suggested in the post on SO?

(for context: my goal would be to use the bokeh server to host charts and widgets to be used through the QWebView, or at the very least to use bokeh to produce static content to show in the QWebView)

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/fae107ae-3b67-492d-9af0-559abe3e06e5%40continuum.io.

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

Hm, I thought my previous reply had posted, however in summary:

Thanks for the info, I think this is a very good lead as Chromium should likely be able to improve performance. QWebEngine belongs to PyQt5, which is tricky to install in Py2.7 on Windows. therefore this becomes a matter of moving to Py3.4.

(Worth nothing for context: Bokeh offers just enough widgets that a python-only GUI project might almost start to make sense in webapp form on Heroku/AWS, without the daunting task of learning libraries like extjs to have pyqt-like widgets on the web)

···

On Thursday, 14 May 2015 19:38:22 UTC+1, Bryan Van de ven wrote:

Hi pythonic,

Unfortunately I don’t know anyone who has any experience using Bokeh with Qt, so you may be exploring new territory. I will say that, as JS libraries go, Bokeh is fairly large, sophisticated, and demanding. Performance is certainly affected by the quality of level of development of the underlying browser engine and canvas implementation. I did find this SO post that may be relevant:

    [http://stackoverflow.com/questions/29055475/qwebview-or-qwebengineview](http://stackoverflow.com/questions/29055475/qwebview-or-qwebengineview)

It looks as though QWebView is being deprecated in favor of QWebEngineView, perhaps that might offer a better experience? Otherwise, I think you might have more luck getting detailed technical advice on QWebView on a Qt oriented list or forum.

If you do find a solution or workaround, please let us know, we can include it in the Bokeh docs.

Thanks,

Bryan

On May 14, 2015, at 1:23 PM, Pythonic [email protected] wrote:

Hello

The question in short

Bokeh charts do not work properly when accessing web content through a QWebView. Loading and dragging is very slow, and the Tools do not work.

For a test, accessing anything in the Bokeh Gallery manifests this issue.

Any ideas if this can be fixed in the setups of the QWebView?

Detailed question

This question partially connects to this other question on google groups and this question on stack overflow.

I have a PyQt GUI with a QWebView that I use to browse the internet. If I navigate to any chart of the bokeh Gallery, the loading is extremely slow, and the bokeh Tools do not work.

Are there QWebSettings that one needs to set in order to fix this, as suggested in the post on SO?

(for context: my goal would be to use the bokeh server to host charts and widgets to be used through the QWebView, or at the very least to use bokeh to produce static content to show in the QWebView)

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/fae107ae-3b67-492d-9af0-559abe3e06e5%40continuum.io.

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