title: ModuleNotFoundError: No module named 'matplotlib.pyplot'
body: <p>When making a plot, I used both Jupyter Notebook and Pycharm with the same set of code and packages. The code is: </p>
  
  <pre><code>import pandas as pd
  import numpy as np 
  import matplotlib.pyplot as plt   # as in Pycharm
  import matplotlib as plt          # as in Jupyter
  
  df = pd.read_csv("/home/kunal/Downloads/Loan_Prediction/train.csv")
  df['ApplicantIncome'].hist(bins=50)
  plt.show() #this only in Pycharm not in Jupyter.
  </code></pre>
  
  <p>In Pycharm, the code works well. But in Jupyter Notebook, it has error:<a href="https://i.stack.imgur.com/qKXC3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qKXC3.png" alt="enter image description here"></a></p>
  
  <p>I wish someone can help me solve this problem</p>