Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Aug 30, 2016
1 parent b3e4b5f commit 85ce9b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 79 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ before_install:
- conda install conda-build

install:
- conda install curl
- pip install coverage
- pip install coveralls
- pip install nose
Expand Down
2 changes: 2 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@
numfig = True
numfig_format = {'figure': 'Fig. %s', 'table': 'Tab. %s', 'code-block': 'Lst. %s'}

nbsphinx_execute = 'always'

rst_epilog = """
"""
Expand Down
9 changes: 7 additions & 2 deletions doc/examples/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"collapsed": true
},
"source": [
"# Examples\n\nIn the following section, we present some examples using **AutoWIG** in order to emphasize particular aspects of the wrapping process.\nNote that this examples can be executed on line on [Binder](http://mybinder.org/repo/statiskit/autowig)."
"# Examples\n",
"\n",
"In the following section, we present some examples using **AutoWIG** in order to emphasize particular aspects of the wrapping process.\n",
"Note that this examples can be executed on line on [Binder](http://mybinder.org/status/statiskit/autowig)."
]
},
{
Expand All @@ -15,7 +18,9 @@
"nbsphinx-toctree": {}
},
"source": [
"* [Wrapping a basic library](./basic.ipynb)\n* [Wrapping a subset of a very large library](./subset.ipynb)\n* [Wrapping a template library](./template.ipynb)"
"* [Wrapping a basic library](./basic.ipynb)\n",
"* [Wrapping a subset of a very large library](./subset.ipynb)\n",
"* [Wrapping a template library](./template.ipynb)"
]
}
],
Expand Down
77 changes: 0 additions & 77 deletions doc/examples/subset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,60 +169,6 @@
" silent = True)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"6ba7b814-9dad-11d1-80b4-00c04fd430c8\n",
"class ::clang::ASTUnit * build_ast_from_code_with_args(class ::boost::python::api::object , class ::boost::python::api::object )\n",
"::clanglite::build_ast_from_code_with_args::035b32c5-4490-4c06-8561-0d8a7899354c\n",
"13980c320ecf5f8083e27f6559db48f5\n"
]
}
],
"source": [
"import uuid\n",
"print uuid.NAMESPACE_X500\n",
"node = asg.nodes('.*build_ast').pop()\n",
"print node.prototype\n",
"print node._node\n",
"print node.hash"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"6ba7b814-9dad-11d1-80b4-00c04fd430c8\n",
"class ::clang::ASTUnit * build_ast_from_code_with_args(class ::boost::python::api::object , class ::boost::python::api::object )\n",
"::clanglite::build_ast_from_code_with_args::035b32c5-4490-4c06-8561-0d8a7899354c\n",
"13980c320ecf5f8083e27f6559db48f5\n"
]
}
],
"source": [
"import uuid\n",
"print uuid.NAMESPACE_X500\n",
"node = asg.nodes('.*build_ast').pop()\n",
"print node.prototype\n",
"print node._node\n",
"print node.hash"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -243,9 +189,6 @@
"source": [
"def clanglite_controller(asg):\n",
" \n",
" from autowig.boost_python_generator import BoostPythonExportBasicFileProxy\n",
" BoostPythonExportBasicFileProxy.HELDTYPE = \"namespace autowig { template<class T> using HeldType = T*; }\"\n",
" \n",
" for node in asg['::boost::python'].classes(nested = True):\n",
" node.is_copyable = True\n",
" \n",
Expand Down Expand Up @@ -404,26 +347,6 @@
"source": [
"wrapper.write()"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"wrapper.decorator.write()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 85ce9b1

Please sign in to comment.