Reconnecting to pyspark context



I’m new to pyspark. I usually practice in spark shell by creating an application. How do i reconnect to a pyspark context if I loose the network connectivity?

is there a way assuming I know the name of the application and the spark.ui.port number etc?