How can I fix JupyterNotebook not printing my outputs when dealing with a large number of files?

27 views Asked by At

I noticed that sometimes JupyterNotebook doesn't print any of my outputs when I have code that iterates over a large number of PDB files. The code runs fine and will output what I need in my directory, it just doesn't print the output so it's hard for me to check for errors.

How can I fix this so I can see the printed outputs?

1

There are 1 answers

0
Mr. Irrelevant On

You could write your output into a file instead of printing it by:

with open(r'file.txt', "a", encoding="utf-8") as g:
            g.write(yourOutput)

If you just want to be able to read it that would be an easy solution