1

Error screenshot

I've been facing an intermittent issue with pandas profiling widget not rendering & it has been going on and off for awhile.

I've tried this in the command prompt:

 jupyter nbextension enable --py widgetsnbextension

it comes up with " - Validating: ok" but still not rendering.

A quick google search led me to a few githubs/pandas-profiling/issues sections but they were a few years old.

James Z
  • 12,209
  • 10
  • 24
  • 44
Kayden
  • 13
  • 5

1 Answers1

1

I had this problem in Kaggle, I think it is related to memory. It happens when I repeat running my notebook a few times, without restarting the kernel.

To fix it, I just clicked Run, then Restart and Clear Outputs, and it's working again.

I have since then optimized my codes to release memory when done with them, as well as get into the habit of restarting and clearing outputs before a fresh run.

It hasn't happened on my local environment with Jupyter Notebook, probably because I have better memory locally. But if it did happen, I guess I would select Kernel, then Restart and Clear Output.

J R
  • 436
  • 3
  • 7
  • Thanks! The intermittent portion comes into play when I restart and clear a out put as well. – Kayden Mar 27 '22 at 07:06
  • yes, that happens to me too. What i meant was restart, clear output, and start the profiling as the first step. My pandas profiling code is in the middle of my notebook. Before that i have a lot of other tasks that use a lot of ram. however, now i managed to change these code so it uses less ram, and now i have no issues. before that, i only get the error by the way, if GPU in kaggle is on. If off, no problem. however, our scenario might be different. You might also try dataprep as an alternative to pandas profiling, very fast and looks similar. also try sweetviz. – J R Mar 27 '22 at 13:50