Example Jupyter notebooks of Copris running on Almond Scala kernel.
You can run them on Binder.
Binder setup scripts are obtained from Almond Examples site.
- Visit https://github.com/tamura70/copris-examples and download ZIP file
- You will download
copris-examples-master.zip
file.
- You will download
- Unzip the downloaded file and rename the folder name as you like.
- Say
copris-test
- Say
- Create your public repository on GitHub
- Say
https://github.com/XXXXX/copris-test
(XXXXX is your ID)
- Say
- Run some commands on your machine to update your GitHub repository
cd copris-test git init git add . git commit -m "First commit" git remote add origin https://github.com/XXXXX/copris-test.git git push -u origin master
- Create your Binder site
- Access Binder with Firefox or Chrome
- Enter your GitHub repository name (say,
XXXXX/copris-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
copris-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
Jupyter notebook files (.ipynb) are exported from Org-mode files by ox-ipynb
macro in scimax package.
The following is my scimax setting in user/user.el
.
(add-to-list 'load-path "~/lib/scimax/ox-ipynb")
(require 'ob-scala)
(require 'ox-ipynb)
(add-to-list 'ox-ipynb-kernelspecs
'(scala . (kernelspec . ((display_name . "Scala")
(language . "scala")
(name . "scala")))))
(add-to-list 'ox-ipynb-language-infos
'(scala . (language_info . ((codemirror_mode . "text/x-scala")
(file_extension . ".scala")
(mimetype . "text/x-scala")
(name . "scala")
(nbconvert_exporter . "script")
(version . "2.12.8")))))