0.0
No commit activity in last 3 years
No release in over 3 years
Converts all ch*.html files from Atlas into iPythyon Notebooks.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

~> 0.6.9
~> 1.8.1
~> 1.6.1
 Project Readme

Atlas2ipynb

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

Installation

Add this line to your application's Gemfile:

gem 'atlas2ipynb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install atlas2ipynb

Usage

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_

For example:

   atlas2ipynb r1pB4y95uMxT3m8t9zRf oreillymedia/razzpisampler

Note that you must have curl and unzip installed to (respectively) download and unpack the build.

TODO:

  • 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.

Contributing

  1. Fork it ( http://github.com//atlas2ipynb/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request