bc = BertClient() takes forever to complete in a local system when it can not find the BERT service in the background. To start the BERT service you can check this resource.
The code in Quantra Notebook works because the BERT service is already started in the background.
Note: The BERT service works well until TensorFlow version 1.15.0. The Quantra environment has version 1.12.0 and all code has been tested for that. For TensorFlow>=2.0 the external bert-as-service package does not work at the moment.