This gem converts the HTML files from Atlas into iPython Notebooks. Basically, it uses the fact that HTML is considered valid markdown, so the gem basically just flattens the output from the HTML build from Atlas and makes each element into a corresponding ipynb "cell".
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install atlas2ipynb
To use this gem, you write your project in http://atlas.oreilly.com[Atlas]. Once you get a working HTML build, can generate a notebook like this:
atlas2ipynb _ATLAS-API-TOKEN_ _PROJECT-NAME_
atlas2ipynb r1pB4y95uMxT3m8t9zRf oreillymedia/razzpisampler
Note that you must have curl and unzip installed to (respectively) download and unpack the build.
- The converter assumes that HTML is valid markdown per the markdown spec, but ipython 2.0 seems to say that embedded markdown will never be trusted. If so, the approah here won't work.
- Fork it ( http://github.com//atlas2ipynb/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request