title: Is it possible to auto-import multiple packages with just one import?
body: <p>I have some functionality that extends a <code>SparkContext</code> in a bunch of very long packages, and for the spark-shell and Zeppelin (and Jupyter...), I want the user to provide a single import-all.</p>
  
  <p>So, I want that the user can do something like</p>
  
  <pre><code>import myext._
  </code></pre>
  
  <p>and behind the scenes, it will do</p>
  
  <pre><code>import something.very.long.and.clumsy.uncomfortable.to.handle.on.a.shell._
  import something.different.very.long.and.clumsy.uncomfortable.to.handle.on.a.shell._
  // more
  </code></pre>
  
  <p>Is this possible, and if yes, how?</p>
  
  <p>Or do I have to write a "helper object" like this:</p>
  
  <pre><code>import something.very.long.and.clumsy.uncomfortable.to.handle.on.a.shell._
  import something.different.very.long.and.clumsy.uncomfortable.to.handle.on.a.shell._
  
  package object myext {
  
    implicit class MyExtHelper(sc: SparkContext) {
  
      def somethingFromLib1 = sc.somethingFromLib1
      def somethingFromLib2 = sc.somethingFromLib2
      // more
    }
  }
  </code></pre>