Added command to convert a notebook to basic HTML. Added 1.8.7 Ruby switch command, currently used by AWS command lines.

This commit is contained in:
Donne Martin 2015-06-03 19:02:51 -04:00
parent c71f9d379a
commit 4d92c51338

View File

@ -10,7 +10,7 @@
"* IPython Notebook\n", "* IPython Notebook\n",
"* Git\n", "* Git\n",
"* Ruby\n", "* Ruby\n",
"* Jekyll\n" "* Jekyll"
] ]
}, },
{ {
@ -129,7 +129,10 @@
"%%python2\n", "%%python2\n",
"\n", "\n",
"# Run cells with python3 in a subprocess\n", "# Run cells with python3 in a subprocess\n",
"%%python3" "%%python3\n",
"\n",
"# Convert a notebook to a basic HTML file \n",
"!ipython nbconvert --to html --template basic file.ipynb "
] ]
}, },
{ {
@ -304,6 +307,7 @@
"!rvm install 2.1.5\n", "!rvm install 2.1.5\n",
"\n", "\n",
"# Set Ruby version\n", "# Set Ruby version\n",
"!rvm --default ruby-1.8.7\n",
"!rvm --default ruby-2.1.5\n", "!rvm --default ruby-2.1.5\n",
"\n", "\n",
"# Check Ruby version\n", "# Check Ruby version\n",