title: Jupyter - importing class from an imported notebook
body: <p>I'm trying to import a class from another notebook and following <a href="http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Importing%20Notebooks.html" rel="nofollow noreferrer">this tutorial</a> I am doing something wrong which i don't get.</p>
  
  <p>I have</p>
  
  <pre><code>#(Building.ipynb)
  
  class Class ():
      def __init__ ():     
          "this is my class"
          print ("I am a new class instance")
  </code></pre>
  
  <p>and all the code exactly as in the tutorial.</p>
  
  <p>When I try:</p>
  
  <pre><code>sys.meta_path.append(NotebookFinder())
  import Building
  a = Class()
  #(or)
  a = Building.Class()
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>NameError                                 Traceback (most recent call last)
  &lt;ipython-input-82-ecc443c1045a&gt; in &lt;module&gt;()
        1 sys.meta_path.append(NotebookFinder())
        2 import Building
  ----&gt; 3 a = Class()
        4 #(or)
        5 a = Building.Class()
  
  NameError: name 'Class' is not defined
  </code></pre>
  
  <p>What's wrong here?</p>