Skip to content

Commit

Permalink
Update template.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Sep 1, 2016
1 parent 61ec837 commit 0300151
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions doc/examples/template.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@
}
],
"source": [
"%%time\n",
"import sys\n",
"autowig.parser.plugin = 'pyclanglite'\n",
"asg = autowig.parser(asg,\n",
Expand All @@ -397,6 +398,7 @@
},
"outputs": [],
"source": [
"%%time\n",
"autowig.controller.plugin = 'default'\n",
"asg = autowig.controller(asg)"
]
Expand All @@ -416,6 +418,7 @@
},
"outputs": [],
"source": [
"%%time\n",
"autowig.generator.plugin = 'boost_python_internal'\n",
"wrappers = autowig.generator(asg,\n",
" module = './PySTL/src/py/_vector.cpp',\n",
Expand All @@ -440,6 +443,7 @@
},
"outputs": [],
"source": [
"%%time\n",
"wrappers.write()"
]
},
Expand Down Expand Up @@ -490,12 +494,10 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "raw",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from stl import vector\n",
"v = vector.Int()\n",
Expand All @@ -506,46 +508,38 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "raw",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"list(v)"
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "raw",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"v[0]"
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "raw",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"v[0] = -2\n",
"v[0]"
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "raw",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"vector.Int([0, 1])"
]
Expand Down

0 comments on commit 0300151

Please sign in to comment.