title: Connect to remote python kernel from python code
body: <p>I have been using <a href="https://github.com/nteract/papermill" rel="nofollow noreferrer">PaperMill</a> for executing my python notebook periodically. To execute compute intensive notebook, I need to connect to remote kernel running in my EMR cluster.</p>
  
  <p>In case of Jupyter notebook I can do that by starting jupyter server with <code>jupyter notebook --gateway-url=http://my-gateway-server:8888</code> and I am able to execute my code on remote kernel. But how do I let my local python code(through PaperMill) to use remote kernel? What changes do what to make in Kernel Manager to connect to remote kernel?</p>
  
  <p>One related SO answer I could find is <a href="https://stackoverflow.com/questions/9977446/connecting-to-a-remote-ipython-instance">here</a>. This suggests to do port forwarding to remote server and initialize KernelManager with the connection file from the server. I am not able to do this as <code>blockingkernelmanager</code> is no longer in Ipython.zmp and I would also prefer HTTP connection like how jupyter does.</p>