I'm getting an import error for interactive plots

Hi! I’m trying to do some interactive plots, but I keep getting this import error:

ImportError: ipywidgets>=5.2.2 is required for interactive plotting.

I already have an up to date version of ipywidgets: ipywidgets==8.0.4 and I ran both:

 pip install ipywidgets
pip install 'nltools[interactive_plots]'

but the error keeps appearing. I’m using pycharm in case that is relevant.