Skip to content

hablapps/scalacrashcourse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binder

Crash course in Scala

This repository contains the notebooks for the crash course in Scala offered by Habla Computing in collaboration with teachers of the University Rey Juan Carlos. The course was offered online through the Madrid Scala Meetup group. You can find links to recordings of the different sessions below.

Outline

The course is divided into four online sessions:

Installing docker and runing the notebooks

  1. Install docker on your machine if you don't have it

    1.1 Linux

    1.2 Windows

    • If your windows is not 10 pro, install this one Windows

    1.3 MAC

  2. Clone this repository

    2.1 Open a terminal

    2.2 Go to the folder you want to download de repo

    2.3 Run this command

    git clone https://github.com/habladev/formacion-capgemini.git

    2.4

    cd {nombre del proyecto}
  3. Run the docker

    3.1 Make sure that docker daemon is running and run this command

    3.2

    • Linux / MAC
    docker run -it --rm -p 8888:8888 -p 4040:4040 -m 4g -v "$PWD":/home/jovyan/work almondsh/almond:0.9.1-scala-2.12.10
    • Windows
    docker run -it --rm -p 8888:8888 -p 4040:4040 -m 4g -v "${pwd}:/home/jovyan/work" almondsh/almond:0.9.1-scala-2.12.10

    If it is the first time running this, it can take a while to download the images.

  4. Enter in Jupyter

    4.1 Copy the token that is showed in the terminal

    Copy/paste this URL into your browser when you connect for the first time, to login with a token:
    http://(824918044eeb or 127.0.0.1):8888/?token=57c1a89124a898d1c6d4ca404445c9b54c9c6d6cfc558f9f
    

    4.2 go to localhost paste the token and log in. Jupyter token login

  5. Test Notebook

    5.1 In Jupyter open with a click the work folder

    5.2 Open with a click the Test notebook

    5.3 Press the run button, if yo don't see any errors and at the end you see it works! you have all up and running.

    ok-result

  6. Close the jupyter container

    Atention!
    

    Make sure that you save everything previously to close Jupyter. The docker parameter --rm- deletes the container (the image is still in your machine), to a clean the enviroment each time you open it, but also discards all non saved changes in the notebooks.

    6.1 Go to the shell that is running the container

    6.2 Control + c to send a kill signal

    6.3 Type 'y' and enter to finish.

Releases

No releases published

Packages

No packages published