I love ipython, especially the notebook feature. I currently keep a screen session running with the notebook process in it. How would I add ipython's notebook engine/webserver to my system's (CentOS5) startup procedures?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Maybe put something like:
in
/etc/rc.d/rc.local
? That's the 'easy' way, fine I think if it's just your personal machine, but if it's a 'real' server you should probably do a full Sys V-init thing; see this question for moreI assume you don't want to run the program as root. So this is my modified version that runs as
<username>
(put in/etc/rc.local
before theexit 0
line):su <username> -c "/usr/bin/ipython notebook --no-browser --profile <profilename> &"
You can check to make sure your ipython is at that path with
which ipython
. Though you may just be able to get away with not putting the full path.credits