title: How to import a local scala file in a Jupyter Notebook?
body: <p>I'm using Jupyter Notebook to work with my Scala codes using the Toree notebook plugin.</p>
  
  <p>How to import a locally saved Scala file (say <code>TweetData.scala</code>) in a notebook in the same directory?</p>
  
  <p>Doing this directly, throws an error</p>
  
  <pre><code>In[1]:  import TweetData._
  
  Out[1]: Name: Compile Error
          Message: &lt;console&gt;:17: error: not found: value TweetReader
              import TweetReader._
                ^
          StackTrace: 
  </code></pre>