Issue while running SQL queries over JupyterNotebook

Hi Team,
I am not able to run the sql queries on Jupyter Notebook.I am getting following error.Please help to resolve this issue.
----->
(psycopg2.OperationalError) could not connect to server: Connection refused
Is the server running on host “localhost” (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host “localhost” (127.0.0.1) and accepting
TCP/IP connections on port 5432?

(Background on this error at: http://sqlalche.me/e/14/e3q8)
Connection info needed in SQLAlchemy format, example:
postgresql://username:password@hostname/dbname
or an existing connection: dict_keys([])

Thanks,
Bhanu Kumar

Hello @Bhanu_kumar_Yadav

Can you please reply the screen shot of the code & kernel you are running. So that we can help you in this.