Skip to content

Commit

Permalink
Merge pull request #8 from jhprinz/Python3
Browse files Browse the repository at this point in the history
py3 support
  • Loading branch information
jhprinz authored Jul 4, 2017
2 parents 9c08caa + 7119ccb commit 53cf2dd
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 96 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ env:
- CONDA_PY=2.7 CONDA_NPY=1.11
- CONDA_PY=3.4 CONDA_NPY=1.10
- CONDA_PY=3.5 CONDA_NPY=1.11
- CONDA_PY=3.6 CONDA_NPY=1.11
5 changes: 3 additions & 2 deletions devtools/conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: ipynbtest
version: "0.2.1"
version: "0.2.3"

build:
preserve_egg_dir: True
Expand All @@ -26,8 +26,9 @@ requirements:
test:
requires:
- matplotlib

source_files:
- ipynbtest/examples
- ipynbtest/examples/ipynbtest_tutorial.ipynb

about:
home: https://github.com/jhprinz/ipynb-test
Expand Down
114 changes: 45 additions & 69 deletions ipynbtest/examples/ipynbtest_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,22 @@
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]"
]
},
"execution_count": 1,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"range(10)"
"list(range(10))"
]
},
{
Expand Down Expand Up @@ -157,10 +155,8 @@
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"execution_count": 4,
"metadata": {},
"outputs": [
{
"ename": "NameError",
Expand All @@ -169,7 +165,7 @@
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-2-18f97fdfd092>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;31m#! ignore\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0mdenom\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m<ipython-input-4-18f97fdfd092>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;31m#! ignore\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0mdenom\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mNameError\u001b[0m: name 'denom' is not defined"
]
}
Expand Down Expand Up @@ -207,7 +203,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"metadata": {
"collapsed": true
},
Expand All @@ -225,18 +221,16 @@
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"36"
]
},
"execution_count": 4,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -247,18 +241,16 @@
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"UUID('bb717dbd-a27f-11e6-9a87-b8f6b1111687')"
]
},
"execution_count": 5,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -270,18 +262,16 @@
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'5c52a2c8'"
]
},
"execution_count": 6,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -299,18 +289,16 @@
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"execution_count": 9,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"UUID('26460930-a077-4124-a2b6-bf10ea4a5853')"
]
},
"execution_count": 7,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -328,18 +316,16 @@
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<__main__.A at 0x103b3c550>"
]
},
"execution_count": 8,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -372,7 +358,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 11,
"metadata": {
"collapsed": true
},
Expand All @@ -383,7 +369,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 12,
"metadata": {
"collapsed": true
},
Expand All @@ -394,16 +380,14 @@
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"execution_count": 22,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"slow\n"
"fast\n"
]
}
],
Expand All @@ -426,10 +410,8 @@
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"execution_count": 24,
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -444,7 +426,7 @@
"5"
]
},
"execution_count": 12,
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -463,7 +445,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 25,
"metadata": {
"collapsed": true
},
Expand All @@ -476,18 +458,16 @@
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"execution_count": 26,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x10e13b590>]"
]
},
"execution_count": 14,
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -515,21 +495,17 @@
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": false
},
"execution_count": 27,
"metadata": {},
"outputs": [],
"source": [
"import sys"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"collapsed": false
},
"execution_count": 28,
"metadata": {},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -573,23 +549,23 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [default]",
"display_name": "Python 3",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
"pygments_lexer": "ipython3",
"version": "3.6.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}
Loading

0 comments on commit 53cf2dd

Please sign in to comment.