Hello everyone,
In general, is there any way to suppress the messages that yt prints to screen?
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.
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.
Thanks, Andrew E.
You can customize yt's logging behavior via the configuration file:
http://yt-project.org/docs/dev/reference/configuration.html
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:
[yt] suppressStreamLogging = True
On Sat, Apr 11, 2015 at 12:49 PM, Andrew James Emerick <aje2123@columbia.edu
wrote:
Hello everyone,
In general, is there any way to suppress the messages that yt prints to screen?
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.
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.
Thanks, Andrew E.
-- Graduate Student Columbia University Department of Astronomy
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org