<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">You can customize yt's logging behavior via the configuration file:<div><br></div><div><a href="http://yt-project.org/docs/dev/reference/configuration.html">http://yt-project.org/docs/dev/reference/configuration.html</a></div><div><br></div><div>In particular, you'll want to play with the log level (higher log levels means less voluminous logging output) or just turn off all logging with the suppressStreamLogging option.  Something like this:</div><div><br></div><div><div>[yt]</div><div>suppressStreamLogging = True<br></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 11, 2015 at 12:49 PM, Andrew James Emerick <span dir="ltr"><<a href="mailto:aje2123@columbia.edu" target="_blank">aje2123@columbia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>In general, is there any way to suppress the messages that yt prints to screen?</div><div><br></div><div>Specifically, I am looping through many datasets in an ipython notebook and would like to stop the yt printout that happens with every "yt.load()" call. This ends up slowing down and occasionally crashing my notebook.</div><div><br></div><div>I've tried normal means of suppressing stdout and stderr, but they don't seem to be working. Adding ";" at the end of the yt.load call doesn't work, and adding "%%capture" in the cell in the ipython notebook also does not work.</div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>Andrew E. <span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">Department of Astronomy</div></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>