Permalink
Browse files

fix notebooks

  • Loading branch information...
sdpython committed Jul 27, 2016
1 parent b652cd5 commit 5ff7a4380c5df31c414c38d4affd0b4c585be71c
@@ -30,7 +30,7 @@
"outputs": [],
"source": [
"import code_beatrix\n",
"from code_beatrix.ipythonhelper import display_canvas_point\n,"
"from code_beatrix.ipythonhelper import display_canvas_point\n",
"%load_ext code_beatrix"
]
},
@@ -251,7 +251,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.3"
"version": "3.5.0"
}
},
"nbformat": 4,
@@ -16,11 +16,22 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The tutormagic extension is already loaded. To reload it, use:\n",
" %reload_ext tutormagic\n",
"The code_beatrix extension is already loaded. To reload it, use:\n",
" %reload_ext code_beatrix\n"
]
}
],
"source": [
"%load_ext tutormagic\n",
"%load_ext code_beatrix"
@@ -45,7 +56,7 @@
"text/html": [
"\n",
" <iframe\n",
" width=\"90%\"\n",
" width=\"100%\"\n",
" height=\"350\"\n",
" src=\"http://pythontutor.com/iframe-embed.html#code=%0Aa%20%3D%20%5B6%2C5%2C7%2C3%2C7%2C3%2C1%5D%0Afor%20i%20in%20range%281%2Clen%28a%29%29%3A%0A%20%20%20%20if%20a%5B0%5D%20%3E%20a%5Bi%5D%3A%0A%20%20%20%20%20%20%20%20ech%20%3D%20a%5B0%5D%20%0A%20%20%20%20%20%20%20%20a%5B0%5D%20%3D%20a%5Bi%5D%0A%20%20%20%20%20%20%20%20a%5Bi%5D%20%3D%20ech&origin=opt-frontend.js&cumulative=false&heapPrimitives=false&textReferences=false&py=3&rawInputLstJSON=%5B%5D&curInstr=0&codeDivWidth=50%25&codeDivHeight=100%25\"\n",
" frameborder=\"0\"\n",
@@ -54,7 +65,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x6f4b7f0>"
"<IPython.lib.display.IFrame at 0x1b7e7ed4a58>"
]
},
"metadata": {},
@@ -98,7 +109,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.3"
"version": "3.5.0"
}
},
"nbformat": 4,
@@ -53,11 +53,13 @@ def test_convert_notebooks(self):
fold2 = os.path.normpath(
os.path.join(fold, "..", "..", "_doc", "notebooks"))
for nbf in explore_folder_iterfile(fold2, pattern=".*[.]ipynb"):
fLOG(nbf)
t = upgrade_notebook(nbf)
if t:
fLOG("modified", nbf)
fold2 = os.path.normpath(os.path.join(fold, "..", "..", "_unittests"))
for nbf in explore_folder_iterfile(fold2, pattern=".*[.]ipynb"):
fLOG(nbf)
t = upgrade_notebook(nbf)
if t:
fLOG("modified", nbf)

0 comments on commit 5ff7a43

Please sign in to comment.