This is the ode I’m trying to run:
import refinitiv.data as rd
rd.open_session()
df = rd.get_history(universe =['aUSCPIAR','pUSCPI=M'],
start='2025-06-01',
end='2026-05-01')
df.sort_index(ascending=False)
@Uday_PK
Thank you for reaching out to us.
To run the code outside the CodeBook environment, the client must set up their own Jupyter Lab environment on the same machine that runs the LSEG Workspace application, and install the LSEG Data Library for Python along with all required dependencies.
Hello @Uday_PK
You can see this https://developers.lseg.com/en/article-catalog/article/step-by-step-guide-install-data-library-python-virtual-env article which gives you a step-by-step guide to install LSEG Data Library for Python and Jupyter Lab application.