I’m trying to connect to a Bloomberg Terminal from Anaconda Notebook. I simply replicated the code I have been running locally.
from xbbg import blp
blp.bdh(["AAPL US Equity"])
The above code returns ConnectionError: Cannot connect to Bloomberg.
I was hoping someone could have done this before and could advise how to connect/authenticate.
Thanks for posting. First of all, is this on our hosted Notebook service (nb.anaconda.cloud) ? and are you using the free tier of the service? Do you know what external domain the xbbg package is connecting to (e.g. bloomberg.net)?
The reason that I ask is that I’m thinking this may be due to the outbound allow lists that the service has in place. Basically, the external sites that free users can reach from the notebook service is limited to a known “safe” list. I’m thinking that the address for the Bloomberg Terminal is not in the allow list.
Luckily, it’s just a support request to add a new outbound site. You can read about it here: Anaconda Notebooks FAQ — Anaconda documentation