Scala プログラミング入門用の Jupyter ノートブック (Almond Scala kernelを利用)を提供している. 以下のURLをクリックするとWebブラウザ上で実行できる!
- https://mybinder.org/v2/gh/tamura70/scala-introduction/master?urlpath=lab/tree/notebooks/index.ipynb
- Visit https://github.com/tamura70/scala-introduction and download ZIP file
- You will download
scala-introduction-master.zip
file.
- You will download
- Unzip the downloaded file and rename the folder name as you like.
- Say
scala-test
- Say
- Create your public repository on GitHub
- Say
https://github.com/XXXXX/scala-test
(XXXXX is your ID)
- Say
- Run some commands on your machine to update your GitHub repository
cd scala-test git init git add . git commit -m "First commit" git remote add origin https://github.com/XXXXX/scala-test.git git push -u origin master
- Create your Binder site
- Access Binder with Firefox or Chrome
- Enter your GitHub repository name (say,
XXXXX/scala-test
) - Copy the URL to access your Binder site later
- Click “launch” button
- Wait for a while. Your browser will be redirected after the docker image is created.
- Modify/create Jupyter notebooks as you like in your browser!
- Download your notebooks into
scala-test
directory- Otherwise, your work will disappear in vain!
- Reflect your changes to the repositry
git add . git commit -m "Modify notebooks" git push
- Access your Binder site again
- The docker image will be recreated automatically (this will also take a time)
- Appending
?urlpath=lab
to the URL gives a better GUI
Binderのセットアップスクリプトは Almond Examples から入手した.