title: How to inherit class from different file?
body: <p>I have two files:</p>
  
  <blockquote>
    <p>fig.py</p>
  </blockquote>
  
  <pre><code>import math
  PI=math.pi
  
  class Fig:
      def __init__(self):   
          self.name= " "
  </code></pre>
  
  <p>And </p>
  
  <blockquote>
    <p>circle.py</p>
  </blockquote>
  
  <pre><code>class Circle(Fig):
      def __init__(self, radius):
          self.name= "Circle"
          self.data= ["Radius: ", radius]
  </code></pre>
  
  <p>But I am trying to load them I whenever I try it <em>jupyter-notebook</em> throws the error:</p>
  
  <blockquote>
    <p>NameError: name 'Fig' is not defined</p>
  </blockquote>
  
  <p>I have tried using <code>import fig</code> at the beggining of <em>circle.py</em> and it does not work, neither does running both files. They are both in the same directory.</p>