title: Determine Spark UI port from within Jupyter/pyspark
body: <p>I'm running multiple Jupyter notebooks each with their own pyspark (Spark 1.6.1) kernel. How can I discover which Spark UI instance belongs to which kernel? Obviously, I could just cycle through the open pages (<a href="http://sparky:4040" rel="nofollow">http://sparky:4040</a>, <a href="http://sparky:4041" rel="nofollow">http://sparky:4041</a>, etc) and try to work it out, but I hope there's a programmatical way of doing it.</p>
  
  <p>Edit: I don't have root access to the servers...</p>