How to disable traceback colorizing when using jupyter nbconvert?

Hi, all

I’m using jupyter nbconvert in a Docker container running on cloud. The only feedback during executing nbconvert is from a text log. However, the colorized traceback which turns into color code in non-terminal output is hard to read. So, the question is, how can I disable the traceback coloring?

1 Like

I’m also curious - the tracebacks are impossible to read in our logging.

Best solution I’ve found so far is to just

$ jupyter nbconvert --to python my-notebook.ipynb && python my-notebook.py

but this breaks any iPython specific stuff (like magics), and defeats the purpose of having --execute as an option.