<div dir="ltr"><div><div><div><div><div><div><div>Hi everyone,<br><br></div>I'm running iPython notebook on an Amazone EC2 instance. Everything works fine when I start ipython from ssh but when I close the ssh connection, the notebook server dies. It seems like it would be better to use upstart to manage the notebook server but I can't quite get it working. I think I'm having the problem mentioned <a href="http://python.6.x6.nabble.com/Notebook-doesn-t-load-profile-when-started-on-boot-td4976770.html">here</a>. I think upstart isn't starting as the correct user and therefore is failing to find my ipython profile. Here's my upstart conf:<br>
<br>start on filesystem<br><br>stop on runlevel [!2345]<br><br>respawn<br>exec sudo -u ubuntu -i ipython notebook --profile=nbserver --ipython-dir=/home/ubuntu<br><br><br></div>This is my first time attempting to use upstart and I'm finding the documentation a bit overwhelming. Can anyone help set me straight and tell me what's wrong with my conf file?<br>
<br></div>Thanks,<br></div>Jared Kibele<br></div>PhD Candidate<br></div>Leigh Marine Lab<br></div>University of Auckland<br></div>