Attributeerror: Module 'matplotlib' Has No Attribute 'get_data_path' On Visual Studio's Jupyter-notebook
I get the following error when I want to import matplotlib.pyplot on the Visual Studio's jupyter-notebook. -------------------------------------------------------------------------
Solution 1:
I had this same problem and solve it by using the following sequence \
- use terminal to direct to project root folder
- Suppose you are running
conda
environment. so, activate the environment byconda activate env-name
- run python interpreter :
python
command and check weather matplotib has installed by\import matplotlib
- run
code .
command to open VScode in this directory. - open terminal and check weather enviromnet has activated
- also check weather jupyter Ipython kernel runs on the same environment
- if any environment is not the one then, change it to a particular one\
this won't happen in the pip
environment usually, because VScode does not activate two channels [pip, conda] or conda environment automatically most of the times.
Post a Comment for "Attributeerror: Module 'matplotlib' Has No Attribute 'get_data_path' On Visual Studio's Jupyter-notebook"