August 2018
Beginner
282 pages
5h 51m
English
The Scala format (.scala) corresponds to the Scala implementation of your Notebook. If you use JavaScript as the language for your Notebook, this is a direct export of the Notebook page.
If you used another language for the script of the Notebook, Python, for example, then the Download as option would change appropriately, for example, Download as | Python (.py).
Using our example, as expected the Scala format is equivalent to the Jupyter display:
import scala.io.Source;
//copied file locally https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data
val filename = "iris.data"
//println("SepalLength, SepalWidth, PetalLength, PetalWidth, Class");
//load iris data into an array
val array = scala.collection.mutable.ArrayBuffer.empty[Float] ...Read now
Unlock full access