Skip to content

Commit

Permalink
Update basic.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Sep 1, 2016
1 parent 7c981cc commit 7776347
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/examples/basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
},
"outputs": [],
"source": [
"%%time\n",
"import sys\n",
"asg = autowig.AbstractSemanticGraph()\n",
"asg = autowig.parser(asg, [sys.prefix + '/include/basic/overload.h',\n",
Expand All @@ -174,6 +175,7 @@
},
"outputs": [],
"source": [
"%%time\n",
"autowig.controller.plugin = 'default'\n",
"asg = autowig.controller(asg)"
]
Expand All @@ -193,6 +195,7 @@
},
"outputs": [],
"source": [
"%%time\n",
"autowig.generator.plugin = 'boost_python_internal'\n",
"wrappers = autowig.generator(asg,\n",
" module = 'basic/src/py/_module.cpp',\n",
Expand All @@ -216,6 +219,7 @@
},
"outputs": [],
"source": [
"%%time\n",
"wrappers.write()"
]
},
Expand All @@ -231,7 +235,7 @@
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [
{
Expand All @@ -246,7 +250,8 @@
}
],
"source": [
"asg['class ::BinomialDistribution'].boost_python_export"
"%%bash\n",
"pygmentize basic/src/py/wrapper_4046a8421fe9587c9dfbc97778162c7d.cpp"
]
},
{
Expand Down Expand Up @@ -474,7 +479,7 @@
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [
{
Expand Down

0 comments on commit 7776347

Please sign in to comment.