I don't think there's an option to start a notebook attached to an already running kernel at the moment. As far as I know the --existing option that this example uses only works with the qtconsole, unfortunately. You could try asking on the ipython mailing list though.