Jupyter client not working with remote jupyter kernel gateway deploy on gcp

`import jupyter_client
import logging

logging.basicConfig(level=logging.DEBUG)

k = jupyter_client.KernelManager(ip=‘example.com’,transport=“tcp”,ports=[8888])

k.start_kernel()
kc = k.client()
kc.start_channels()
kc.wait_for_ready()

reply = kc.execute(“print(‘Hello, world!’)”)
print(reply)

kc.stop_channels()
k.shutdown_kernel()

`