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

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'.
主站蜘蛛池模板: 罗平县| 东台市| 淄博市| 万源市| 都兰县| 邹城市| 全州县| 安陆市| 甘洛县| 株洲县| 常州市| 山西省| 察隅县| 临沭县| 鄱阳县| 蓬安县| 永吉县| 蒙自县| 吉隆县| 西华县| 桓仁| 龙海市| 凌云县| 邢台县| 榕江县| 承德县| 北海市| 阿勒泰市| 佛坪县| 吉安市| 芮城县| 临江市| 铅山县| 莎车县| 旌德县| 绥阳县| 砚山县| 岳普湖县| 科尔| 红河县| 临朐县|