问题
I usually start the ipython notebook engine and put it in the background. But whenever users open/close notebooks or timeouts happen, I see the background spitting out messages on the terminal from where I started it - which is kind of annoying.
Any way to suppress those and make the engine stay silently in the background. I suspect this might be a simple switch at startup. I am kind of pressed with time so did not go via RTFM.
回答1:
Forgot the simple piping of the output to /dev/null, which does the trick:
alias start_ipy='cd /path_notebook_folder; ipython notebook --profile=nbserver --no-browser --pylab inline --port=443 2>/dev/null >/dev/null &'
来源:https://stackoverflow.com/questions/14992278/supress-messages-from-ipython-notebook-engine