来自ipython笔记本引擎的禁止消息 [英] supress messages from ipython notebook engine

查看:65
本文介绍了来自ipython笔记本引擎的禁止消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常启动ipython笔记本引擎并将其放在后台.但是,每当用户打开/关闭笔记本或发生超时时,我都会看到后台从启动终端的位置在终端上吐出消息-这很烦人.

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.

以任何方式抑制这些干扰并使引擎安静地停留在后台.我怀疑这可能是启动时的简单切换.我有点时间紧迫,所以没有通过RTFM.

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.

推荐答案

忘记了将输出的简单管道传递到/dev/null的方法:

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 &'

这篇关于来自ipython笔记本引擎的禁止消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆