For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

CodeBook - Embedding a Bokeh server in a Notebook

Hi,

I am building an interactive app with reactive to the selection which it will be doing filtering on one of the column in dataframe, say ticker list. I following the steps mentioned in Bokeh documentation but it doesn't seem to work on CodeBook.

https://github.com/bokeh/bokeh/blob/2.3.2/examples/howto/server_embed/notebook_embed.ipynb

When I run it on jupyter notebook, it works though. Any idea how to make embedded chart working in CodeBook?

Thanks


eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikoncodebookbokeh
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
11.5k 16 7 10

Hello @RCHANG619

The CodeBook is deployed in the hosted environment, so I am not sure if it allows running a Notebook application in a "server mode" or not.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
9.7k 49 38 60

Hi @RCHANG619,

The current version of CodeBook provides a static list of python packages and does not presently allow users to import additional ones. While you didn't provide any details around what isn't working, error message, etc, I can only assume you are attempting to use a package not installed, i.e. bokeh.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 0

Thanks @nick.zincone.1. bokeh is indeed in the list of installed python packages. I can get the chart displayed for a bokeh chart


*The chart works*




1620951795993.png (28.3 KiB)
1620951965068.png (76.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 0

However, I want to build an reactive app with callback by leveraging bokeh server, which follows the link I post originally but it only shows the bokeh banner without displaying the chart


1620952127815.png (65.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea