Installing Scala kernel (or Spark/Toree) for Jupyter (Anaconda)
<p>I'm running RHEL 6.7, and have Anaconda set up. (anaconda 4.10). Jupyter is working OOTB, and it by default has the Python kernel. Everything is dandy so I can select "python notebook" in Jupyter.</p>

<p>I'm now looking to get Scala set up with Jupyter as well. (which it seems like Spark kernel - now Toree will work?)</p>

<p>Every question/answer I've seen in regards to it - is not referencing the issue I'm running into. </p>

<p>I was trying to install Toree, and did </p>

<pre><code>sudo pip install toree 
</code></pre>

<p>and it worked. But then the next step is too </p>

<pre><code>jupyter toree install
</code></pre>

<p>And the <strong>error</strong> I get is:</p>

<pre><code>jupyter toree install
Traceback (most recent call last):
  File "/usr/app/anaconda/bin/jupyter-toree", line 7, in &lt;module&gt;
    from toree.toreeapp import main
ImportError: No module named toree.toreeapp
</code></pre>

<p>Am I missing a step? Anything I'm doing wrong? If i need to provide more information, I will be glad too. Thanks!</p>

<p>Edit: What is the standard/easiest/reliable way to get a Scala notebook in Jupyter? (tl;dr)</p>

<p>First, make sure you set the SPARK_HOME variable in your shell environment to point to where spark is located, for example:</p>

<pre><code>export SPARK_HOME=$HOME/Downloads/spark-2.0.0-bin-hadoop2.7
</code></pre>

<p>next install toree with</p>

<pre><code>sudo jupyter toree install --spark_home=$SPARK_HOME
</code></pre>

python scala jupyter jupyter-notebook apache-toree