Hi @TRACYANNWRIGHT ,
You can run the code outside of the Refinitiv platform (in your local environment)
However, I'd suggest you to check Eikon Data API quick start guide
The Eikon application integrates a Data API proxy that acts as an interface between the Eikon Data API Python library and the Eikon Data Platform. For this reason, the Eikon application must be running when you use the Eikon Data API Python library. When launched, the Eikon application starts listening for local websocket connections on port 9000 or the next available port if port 9000 is already occupied. You need to have a valid Eikon user account to be able to launch the Eikon application.
Hope this could help