This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scala interpreter instructions (#14169)
- Loading branch information
1 parent
49c311c
commit c45e534
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
The following instructions are provided for macOS and Ubuntu. Windows is not yet available. | ||
|
||
**Note:** If you use IntelliJ or a similar IDE, you may want to follow the [MXNet-Scala on IntelliJ tutorial](../tutorials/scala/mxnet_scala_on_intellij.html) instead of these instructions. | ||
**Note:** Currently, we only support scala 2.11 | ||
|
||
<hr> | ||
|
||
|
@@ -114,6 +115,33 @@ mvn install | |
|
||
<hr> | ||
|
||
## Interpreter | ||
|
||
To run the scala interpreter, first download and install scala 2.11.x (run `scala -version` to make sure you have the right version installed.** | ||
|
||
### Installing the Interpreter | ||
|
||
**Ubuntu*** | ||
|
||
``` | ||
sudo apt-get install scala | ||
``` | ||
|
||
**macOS*** | ||
|
||
``` | ||
brew install [email protected] | ||
``` | ||
|
||
Then, add scala to your path by following the instructions output by homebrew. | ||
|
||
### Running the Interpreter | ||
|
||
To run the interpreter, download the appropriate mxnet jar from [the maven repository](https://search.maven.org/search?q=g:org.apache.mxnet) or build from source following the instructions above. | ||
|
||
Then, run `scala -cp {path/to/mxnet-full_2.11-os-version.jar}` to start it. | ||
If you receive a "NumberFormatException" when running the interpreter, run `export TERM=xterm-color` before starting the interpreter. | ||
|
||
## Documentation | ||
|
||
Scaladocs are generated as part of the docs build pipeline. You can find them published in the [Scala API](http://mxnet.incubator.apache.org/api/scala/index.html) section of the website or by going to the [scaladocs output](https://mxnet.incubator.apache.org/api/scala/docs/index.html#org.apache.mxnet.package) directly. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters