supress messages from ipython notebook engine

和自甴很熟 提交于 2019-12-13 06:01:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!