Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

AttributeError: module 'matplotlib' has no attribute 'get_data_path' on Visual Studio's jupyter-notebook

$
0
0

I get the following error when I want to import matplotlib.pyplot on the Visual Studio's jupyter-notebook.

---------------------------------------------------------------------------AttributeError                            Traceback (most recent call last) in ----> 1 import matplotlib.pyplot as plt~/miniconda3/envs/firstSteps/lib/python3.8/site-packages/matplotlib/__init__.py in     903 # triggering resolution of _auto_backend_sentinel.    904 rcParamsDefault = _rc_params_in_file(--> 905     cbook._get_data_path("matplotlibrc"),    906     # Strip leading comment.    907     transform=lambda line: line[1:] if line.startswith("#") else line,~/.local/lib/python3.8/site-packages/matplotlib/cbook/__init__.py in _get_data_path(*args)AttributeError: module 'matplotlib' has no attribute 'get_data_path'

But I don't have this error if I try the same code on the navigator's jupyter-notebook.So I don't understand why I get this error since both notebook are running under the same kernel which have the matplotlib 3.3.1 version installed on.

I would be grateful if someone can give me any enlightenment. :)


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>