[math] Don't color print tensor inside PyCharm
@@ -2069,6 +2069,9 @@ class PrintOptions:
def check_is_printing():
import traceback, sys
stack = traceback.extract_stack()
+ for frame in stack:
+ if "_pydevd_bundle\\pydevd_xml.py" in frame.filename:
+ return False
for frame in stack:
if frame.line.strip().startswith('print('):
return True
