Also, if you're doing everything in JupyterLab like I am, you can use: %load_ext wurlitzer in the cell to suppress everything from C/C++ in that particular cell. https://pypi.org/project/wurlitzer/