0

I generate html reports using papermill and jupyter notebook, and have done so successfully for quite some time. Suddenly, and even though the html reports are generated just fine, the ipynb files that are generated along with it (in fact, I believe papermill generates the ipynb and from this, the html file is then generated) fail to load. This is baffling to me, and I need to access certain content in the .ipynb file to account for certain calculations that are reflected in the html file.

When attempting to open the .ipynb file in jupyter notebook, I get a pop-up message that says:

Error loading notebook
OK

When I inspected the terminal, I had the following output that made me consider whether the file not being "trusted" was the problem:

[W 21:25:35.582 NotebookApp] Notebook Desktop/Python/Project/XLI_BearCall_2022-12-21.ipynb is not trusted

So I made it trusted, yet I still am unable to open the file, with the same "OK" error mentioned above being thrown.

I went to see if this was the case for all .ipynb files generated along past html reports, and they opened just fine. In fact, they would print the same error about the file not being trusted to the console, but would end up opening fine anyway. And after trusting the .ipynb file in question, I now get no output whatsoever in the console when attempting to open it, so I'm completely at a loss as to the problem. I have restarted the kernel, restarted jupyter notebook, all to no avail.

Needless to say, since the html generates just fine, papermill has not alerted me to there being a problem:

Executing: 100%|█████████████████████████████████████████████████████████████████████| 23/23 [00:09<00:00,  2.53cell/s]

Assistance is greatly appreciated.

pmse234
  • 15
  • 4

0 Answers0