Closed Asuralf closed 2 years ago
Those are the ANSI escape characters to colorize the output. If you directly open that in the editor it could output this weird stuff. The simple way to solve this is to simply add color=False
as an argument in op()
. You could also set it globally by op.config(color=False)
thanks, it works
I used pyreadstat module to read a simple SAS file. the code goes like this in jupyter notebook
the brief output of current cell seems normal
but after I clicked "in a text editor", the first lines look like this:
the weird characters actually look like small suqares contains 3 small letters
ESC
in the text editor.