Skip to content

Instantly share code, notes, and snippets.

@sburns
Created April 23, 2014 18:41
Show Gist options
  • Save sburns/11227605 to your computer and use it in GitHub Desktop.
Save sburns/11227605 to your computer and use it in GitHub Desktop.
ipython notebook supervisor recipe
[program:ipynb]
command=/gpfs22/home/burnsss1/env6/bin/ipython notebook --profile=external #change
numprocs=1
numprocs_start=0
autostart=true
autorestart=true
startsecs=1
startretries=3
exitcodes=0,2
stopsignal=QUIT
stopwaitsecs=10
redirect_stderr=false
stdout_logfile=AUTO
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stdout_capture_maxbytes=0
stdout_events_enabled=false
stderr_logfile=AUTO
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
stderr_capture_maxbytes=0
stderr_events_enabled=false
directory=/fs0/New_Server/Notebooks #change
serverurl=AUTO
[group:notebook]
programs=ipynb
@sburns
Copy link
Author

sburns commented Apr 23, 2014

In your supervisord.conf file, add include /path/to/ipynb.conf

$ supervisorctl -c /path/to/supervisord.conf reread
[should say something about added notebook]
$ supervisorctl -c /path/to/supervisord.conf start notebook:*

This is almost word for word what @rgbkrk recommends on this stackoverflow page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment