based on a jupyter application calling notebook 4.2-style extension API methods Also make check for running server more robust