question

Upvotes
Accepted
28 0 0 5

Problems and disagreements when extracting data in Jupyter outside the Codebook environment.

Hi!

I notice a problem when I pull data in my Jupyter notebook, and when I pull the same data with the same way on the CodeBook environment, this problem does not appear.

However, for more flexibility in my work, I need to get these data outside the CodeBook environent.

Below you can see two prints that ilustrate the situation:

On my Jupyter Notebook:

1703091166450.png


On the CodeBook enviroment:

1703090881068.png


Notice that is the same code in both situations. However, when I filter the data by the Analyst Name, in Jupyter we see different names of broker houses for the same analyst in a small period of time (in this case, only 10 days). On the other hand, in CodeBook this error don't happen.

What is this? Anyone knows if is possible to fix that?

Thanks

eikon-data-apipython#technology#productrdp-apicodebookjupyter-notebook
1703090881068.png (63.8 KiB)
1703091166450.png (72.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.

Upvote
Accepted
27.5k 67 18 14

Hello @manuel.alvarez

I noticed that your local notebook environment is connected to the Platform session access point (RDP) as follows:

your-local-notebook.png

Please be informed that when you are using the Codebook App, it always connects to the Desktop session access point by default as configured in the _RefinitivDataLibrary/refinitiv-data.config.json file.

{
  ...
  "sessions": {
    "default": "desktop.codebook",
    "desktop": {
      "codebook": {
        "app-key": "DEFAULT_CODE_BOOK_APP_KEY"
      }
    }
  }
}

The Desktop and Platform sessions source data from different data source, so the data and content set might not be the same.

I have tried your code in my local Jupyter notebook with RD Lib version 1.5.1 connects to the Desktop session. The result is the same as on Codebook App.

workspace.png

Please try to change your local refinitiv-data.config.json to connect to the Desktop session and re-test the issue.

  • The Workspace/Eikon desktop application must be running in the same machine.

workspace.png (62.6 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.

Upvote
7.2k 18 2 8

Hi @manuel.alvarez ,


I have tried you code in local Jupiter lab and have the same output as you have in Codebook. Which version of RD Libraries are you using in your local environment?


Best regards,

Haykaz

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.

Hi Haykaz, my current version is 1.5.0.


1703097706035.png

1703097706035.png (15.7 KiB)
Upvotes
28 0 0 5

Now I have updated and my current version is 1.5.1 @aramyan.h

However, the same issue persists. 1703101673361.png


1703101673361.png (83.8 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
28 0 0 5

Perfect, I've changed the session and now works appropriately, as you can see below:

1703167079304.png
Thank you very much!



1703167079304.png (85.8 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.