Is the recommended way to use it via the Python SDK with an App Key

I have one quick question about CodeBook:

Is the recommended way to use it via the Python SDK with an App Key?

I’ve been running into some blocks that I can’t seem to get around, and I’d like to confirm the best setup for this tool.

Answers

  • App key is not needed in the codebook environment - there is a default one built into the environment. Please see the pre-packaged examples provided in the Codebook for correct usage.

  • We have a follow up question on this please:

    I’m reaching out with another question regarding the attached script. I ran the check using our login (since I couldn’t use a default session to retrieve the data), but when I run it this way Refinitiv/CodeBook becomes unresponsive. I then get connectivity errors and “failed to connect” messages, and sometimes I can’t log back in after a reload.

    Is there a known reason for this behavior, or guidance on how to avoid it?

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @sureshbabu

    Thank you for reaching out to us.

    The library can retrieve data from either a desktop session or a platform session.

    • For desktop sessions, the Workspace app must be running on the same machine, as the library accesses data through this app.
    • For platform sessions, the library connects directly to the cloud-based Data Platform, so the Workspace app is not required.

    Please note that Workspace and Data Platform accounts are separate. Clients should use a Data Platform account—not a Workspace account—when connecting to the Data Platform.

    Based on the question, it appears the client is using their Workspace account to log into Workspace and also attempting to use the same account to access the Data Platform. This usage is likely not permitted. Please confirm this with the client, and then reach out to their account team or Sales representative to verify this scenario.

    To use the desktop session, the code will look like the following. It only requires an application key.

    session = rd.session.desktop.Definition(app_key = APP_KEY).get_session()
    session.open() rd.session.set_default(session)
  • Thanks Jirapongse!

    So how would I obtain a Data Platform account?

    Would this cost extra to our plan?

    I think you can run the search without a Data Platform account on windows correct? but for Mac you need a Data Platform account

    Thanks again for the help

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Settlements

    You can do search through the Workspace App with the desktop session. The Workspace is available on Windows and Mac.

    You can Request Free Trial to access the Data Platform. Otherwise, please contact your LSEG local sales representatives for more information.