Giter VIP home page Giter VIP logo

ox-ipynb's Introduction

ox-ipynb — Convert an org-file to an ipynb

This module allows you to export an org-file to an Ipython notebook. Python and R notebooks are currently supported. It is not currently possible to mix these languages.

About this module

The Jupyter/Ipython notebooks are ultimately just json files. This module parses an org-file, and creates json files that represent them. The parsing is rudimentary. Jupyter notebooks only have two basic cells: text and code. This module tries to parse the org-file into those two kinds of cells.

See this example org-file: ./example.org and the corresponding ipynb: ./example.ipynb.

(require 'ox-ipynb)

This will install a new export menu titled “Export to jupyter notebook” with the sub-options to export to a buffer, to a file, to a file and open, and to slides and open.

Slideshows

See ./ipynb-slideshow.org to see how to make a slideshow out an org-file.

Adding a new language

It is probably possible to add new languages by adding to the variables ox-ipynb-kernelspecs and ox-ipynb-language-infos. These were reverse-engineered to make the json metadata. I do not know what the minimal setup for this is required and suggest adapting these variables by example.

Extract ox-ipynb from scimax

This block is adapted from http://www.pixelite.co.nz/article/extracting-file-folder-from-git-repository-with-full-git-history/

cd /Users/jkitchin/vc/jkitchin-github/scimax
git log --pretty=email --patch-with-stat --reverse --full-index --binary -- ox-ipynb.el > /tmp/patch

mkdir /Users/jkitchin/vc/jkitchin-github/ox-ipynb
cd /Users/jkitchin/vc/jkitchin-github/ox-ipynb
git init
git am < /tmp/patch

ox-ipynb's People

Contributors

chase-dwelle avatar jkitchin avatar singlets avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.