ConnectionError: ray client connection timeout, Ray, Kubernetes

i am able to connect when i run from command line(python test.py). when i try to connect from jupyter notebbok throws conection timeout

from collections import Counter

import sys

import time

import ray

ray.init(f"ray://a7f40d360bfcc43709d8fadb5e892376-1833238632.us-east-1.elb.amazonaws.com:10001")