Trouble with printing the Python Files

I am trying to print the python file which it has some pictures. the printed file does not show the pictures and it shows missing text. Is there any way to fix this issue?

You might be able to use your browser’s “Print → PDF” option.