Apple - How to run iPython Notebook as a service
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.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>cern.chernals.ipython</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/jupyter-notebook</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/Users/chernals/Library/LaunchAgents/jupyter-notebook.stderr</string>
<key>StandardOutPath</key>
<string>/Users/chernals/Library/LaunchAgents/jupyter-notebook.stdout</string>
<key>KeepAlive</key>
<true/>
</dict>
</plist>