Skip to content

tamura70/copris-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copris Examples Binder

Example Jupyter notebooks of Copris running on Almond Scala kernel.

You can run them on Binder.

How to create your own Binder site

Binder setup scripts are obtained from Almond Examples site.

  1. Visit https://github.com/tamura70/copris-examples and download ZIP file
    • You will download copris-examples-master.zip file.
  2. Unzip the downloaded file and rename the folder name as you like.
    • Say copris-test
  3. Create your public repository on GitHub
    • Say https://github.com/XXXXX/copris-test (XXXXX is your ID)
  4. 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
    
  5. 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.
  6. Modify/create Jupyter notebooks as you like in your browser!
  7. Download your notebooks into copris-test directory
    • Otherwise, your work will disappear in vain!
  8. Reflect your changes to the repositry
    git add .
    git commit -m "Modify notebooks"
    git push
    
  9. 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

Org-mode

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")))))

Credits/Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published