Python Forum
importing matplotlib in jupyter notebook
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
importing matplotlib in jupyter notebook
#1
The following code produces the following error;


import pandas as pd
from matplotlib import pyplot as plt
import math
import re
import numpy as np
import feather
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn.pipeline import Pipeline
from sklearn.linear_model import SGDClassifier
from xgboost import XGBClassifier
from lightgbm import LGBMClassifier
from datetime import date
from dateutil.parser import isoparse
from pandas.plotting import table
The error is now shown:

Error:
ImportError Traceback (most recent call last) <ipython-input-2-53f378af38b1> in <module>() 1 import pandas as pd ----> 2 from matplotlib import pyplot as plt 3 import math 4 import re 5 import numpy as np C:\Users\james\miniconda3\envs\py-dep\lib\site-packages\matplotlib\__init__.py in <module>() 172 173 --> 174 _check_versions() 175 176 C:\Users\james\miniconda3\envs\py-dep\lib\site-packages\matplotlib\__init__.py in _check_versions() 157 # Quickfix to ensure Microsoft Visual C++ redistributable 158 # DLLs are loaded before importing kiwisolver --> 159 from . import ft2font 160 161 for modname, minver in [ ImportError: DLL load failed: The specified module could not be found.
I am using matplotlib and matplotlib-base ver 3.3.3

I am also using python 3.8.2.

I do not know how to get rid of this error?

Thanks in adavnce.

Respectfully,

LZ
Reply


Messages In This Thread
importing matplotlib in jupyter notebook - by Led_Zeppelin - Feb-24-2021, 07:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 155 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 1,325 Nov-15-2023, 06:56 PM
Last Post: jst
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 883 Oct-29-2023, 12:40 PM
Last Post: Mark17
  How to programmatically stop a program in Jupyter Notebook? Mark17 11 38,408 Feb-12-2023, 01:41 PM
Last Post: jp21in
Thumbs Up Python 3 Jupyter notebook ternary plot data nicholas 0 1,032 Jan-21-2023, 05:01 PM
Last Post: nicholas
  Graphs from Jupyter notebook to word Scott 0 977 Nov-28-2022, 06:16 AM
Last Post: Scott
  Opening an empty Jupyter notebook in VSCODE Krischu 3 1,972 Mar-09-2022, 01:57 PM
Last Post: Larz60+
  How to do line continuation in Jupyter Notebook? Mark17 4 5,670 Sep-22-2021, 04:22 PM
Last Post: ibreeden
  Jupyter Notebook as IDE bytecrunch 0 1,658 Sep-12-2021, 07:41 PM
Last Post: bytecrunch
  Importing module in jupyter Noteboook ajitnayak1987 0 1,798 Jun-04-2021, 12:26 PM
Last Post: ajitnayak1987

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020