I have installed mongodb and enabled auth. and its working find. I can connect it from remote notebook using robomongo application:
Host: SERVER_IP PORT: 270
Please try something like this:
client = MongoClient("mongodb://user_name:user_password@SERVER_IP/prod-db") db = client['prod-db']