I can't use the librarie yellowbrick on my jupyter lab. I want to specifically use the KElbowVisualizer, but it's just impossible (and I know that it seems a simple problem but I tried everything).
I always get the same message: ModuleNotFoundError: No module named 'yellowbrick' // as if it was not installed.
I tried to download it using pip through jupiter lab (and I also installed it on my cmd), but it sad everything was already 'satisfied' (downloaded).
I also used !pip list on my jupyter lab and there was it: yellowbrick
And just to make sure I restarted my kernel more than once, but it just doesn't work!
what should I do??
IMPORTANT: I can't use conda, only pip.
The command you want to run in your running Jupyter
.ipynbfile is:Make a new cell and run that and then restart the kernel. You probably should at least refresh the browser, if not shut down all Jupyter and your browser and restart. Some of the more complex installs involving controlling how things display, like it looks like yellowbrick does, need more than just refreshing the kernel.
The magic pip command variation was added in 2019 to insure the install occurs in the environment where the kernel is running that backs the active notebook.
The exclamation point doesn't do that and can lead to issues. You should be also using
%pip listto see what is installed in the kernel that your notebook is using.See more about the modern
%pip installcommand here. The second paragraph here goes into more details about why the exclamation point may lead to issues.