How to run iPython Notebook as a service What would be the best "standard" way to create a launchd script to run python notebook?

I would like the service to start at login and an easy to start-stop-restart the server from a terminal.
In the end I created the following .plist file. It is autoloaded on startup and it will start a jupiter notebook and keep it alive.

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
 &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
  "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
      &lt;plist version="1.0"&gt;
      &lt;dict&gt;
          &lt;key&gt;KeepAlive&lt;/key&gt;
          &lt;true/&gt;
          &lt;key&gt;Label&lt;/key&gt;
          &lt;string&gt;cern.chernals.ipython&lt;/string&gt;
          &lt;key&gt;ProgramArguments&lt;/key&gt;
          &lt;array&gt;
              &lt;string&gt;/usr/local/bin/jupyter-notebook&lt;/string&gt;
          &lt;/array&gt;
          &lt;key&gt;RunAtLoad&lt;/key&gt;
          &lt;true/&gt;
          &lt;key&gt;StandardErrorPath&lt;/key&gt;
          &lt;string&gt;/Users/chernals/Library/LaunchAgents/jupyter-notebook.stderr&lt;/string&gt;
          &lt;key&gt;StandardOutPath&lt;/key&gt;
          &lt;string&gt;/Users/chernals/Library/LaunchAgents/jupyter-notebook.stdout&lt;/string&gt;
              &lt;key&gt;KeepAlive&lt;/key&gt;
              &lt;true/&gt;
      &lt;/dict&gt;
      &lt;/plist&gt;