Avoid red background color for log output in ipython notebook

Is it possible to avoid the red background when the laptop prints the output? For example, an example of this laptop.

http://nbviewer.ipython.org/gist/bjonen/1bd52a7d8a4761a74074

+5
source share
1 answer

A red background highlights the output sent to stderr, unlike stdout. To avoid this, you can send your log to standard output:

ch = logging.StreamHandler(sys.stdout) 
+4
source

Source: https://habr.com/ru/post/1200574/


All Articles