官术网_书友最值得收藏!

Setting up the Scala environment in Intellij

It is best to use an IDE like IntelliJ to edit Scala code, which provides faster development tools and coding assistance. Code completion and inspection makes coding and debugging faster and simpler, ensuring you focus on the end goal of learning math for machine learning.

IntelliJ 2016.3 brings Akka, Scala.meta, Memory view, Scala.js, and Migrators to the IntelliJ IDE as part of the Scala plugin. Now, let's set up the Scala environment in Intellij as follows:

  1. Go to Under Preferences | Plugins, and verify if the Scala plugin is installed. SBT, which is a build tool for Scala, is configured by default as shown in the following screenshot:
  1. Select File | New | Project from Existing resources | $GIT_REPO/Chapter_02/breeze or $GIT_REPO/Chapter_02/spark. Here, $GIT_REPO is the repository path where you have cloned the source code of the book.
  2. Import project by selecting the SBT option:
  1. Keep the default options of SBT, and click on Finish.
  2. SBT will take a while to import references from build.sbt.
  1. Finally, right click on the source file and select Run 'Vector'.
主站蜘蛛池模板: 柯坪县| 通河县| 永德县| 保山市| 博乐市| 揭西县| 东海县| 晋宁县| 霍林郭勒市| 朝阳区| 吉水县| 尼玛县| 府谷县| 乌拉特后旗| 安远县| 三原县| 东乡族自治县| 蒲江县| 九寨沟县| 镇康县| 茂名市| 密云县| 工布江达县| 东乡| 城口县| 封开县| 福州市| 龙井市| 巨鹿县| 定安县| 武夷山市| 寻乌县| 丰宁| 甘谷县| 和政县| 新宁县| 大关县| 天全县| 和顺县| 九龙县| 平泉县|