Skip to content

Commit

Permalink
how to run scala notebooks more steps added
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshrini committed Mar 21, 2017
1 parent 7dcac70 commit a9e5e2d
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,35 @@ The scala notebooks are written in [Jupyter](http://jupyter.org/) using [Jupyter

4. Install [Maven](https://gist.github.com/sebsto/19b99f1fa1f32cae5d00). Install [Scala 2.11.8](https://www.scala-lang.org/files/archive/scala-2.11.8.rpm). Go to MXNet source code, compile scala-package by command `make scalapkg`. Compiled jar file will be created in `mxnet/scala-package/assembly/{your-architecture}/target` directory.

5. Install [Jupyter-Scala Kernel V0.3.x](https://github.com/alexarchambault/jupyter-scala) according to the instructions given, including [coursier](https://github.com/coursier/coursier) scala library. Make sure coursier launcher is available in the PATH. To check if scala-kernel is installed, type command `jupyter kernelspec list`.
5. Install [coursier](https://github.com/coursier/coursier), a Scala library to fetch dependencies from Maven / Ivy repositories as follows.

6. Clone this repo on the EC2 machine and run jupyter
On OS X, `brew install --HEAD paulp/extras/coursier`
On Linux,

```bash
curl -L -o coursier https://git.io/vgvpD && chmod +x coursier && ./coursier --help
```

Make sure coursier launcher is available in the PATH.

6. Install [Jupyter-Scala Kernel V0.3.x](https://github.com/alexarchambault/jupyter-scala) according to the instructions given below:

```bash
git clone https://github.com/alexarchambault/jupyter-scala.git
git checkout 0.3.x
./jupyter-scala
```

To check if scala-kernel is installed, type command `jupyter kernelspec list`.

7. Clone this repo on the EC2 machine and run jupyter

```bash
git clone https://github.com/dmlc/mxnet-notebooks
jupyter notebook
```

6. Now we are able to view and edit the notebooks on the browser using the URL: http://localhost:8888/tree/mxnet-notebooks/scala/. Include mxnet-scala jar created in step-4 in classpath by command `classpath.addPath("jar-path")` in the notebook you want to run.
8. Now we are able to view and edit the notebooks on the browser using the URL: http://localhost:8888/tree/mxnet-notebooks/scala/. Choose scala211 kernel if asked. Include mxnet-scala jar created in step-4 in classpath by command `classpath.addPath("jar-path")` in the notebook you want to run.


## How to develop
Expand Down

0 comments on commit a9e5e2d

Please sign in to comment.