Anaconda Notebook connection to Bloomberg Terminal

Hi all,

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.