Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 1

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-apirefinitiv-dataplatform-eikonworkspaceworkspace-data-apicodebookbokeh
icon clock
10 |1500

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

@RCHANG619

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS


@RCHANG619

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
24.7k 54 17 14

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 512.0 KiB each and 1.0 MiB total.

Upvotes
17.3k 82 39 63

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 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 1 1

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 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 1 1

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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