Docs: Python examples (#1279)
* Add 2 new examples to `python/examples` and their corresponding tutorials in the docs. 1. `single_cell_detailed.py` : a slightly more complex example using `single_cell_model` 2. `single_cell_detailed_recipe.py`: equivalent to `single_cell_detailed.py` but using a recipe. * Change `load_swc`-> `load_swc_arbor` for consistency. * Run Sphinx with specified PYTHON_EXECUTABLE. * Set PYTHONPATH env var in doc/CMakeLists.txt, such that it propagates correctly, including locally. * Build pyarb BEFORE html such that docs build can import arbor in Github Actions script.
Showing
- .github/workflows/basic.yml 3 additions, 1 deletion.github/workflows/basic.yml
- doc/CMakeLists.txt 3 additions, 1 deletiondoc/CMakeLists.txt
- doc/concepts/recipe.rst 6 additions, 6 deletionsdoc/concepts/recipe.rst
- doc/contrib/coding-style.rst 1 addition, 1 deletiondoc/contrib/coding-style.rst
- doc/index.rst 2 additions, 2 deletionsdoc/index.rst
- doc/install/python.rst 1 addition, 1 deletiondoc/install/python.rst
- doc/python/cable_cell.rst 1 addition, 1 deletiondoc/python/cable_cell.rst
- doc/python/morphology.rst 1 addition, 1 deletiondoc/python/morphology.rst
- doc/scripts/gen-labels.py 56 additions, 4 deletionsdoc/scripts/gen-labels.py
- doc/scripts/make_images.py 15 additions, 1 deletiondoc/scripts/make_images.py
- doc/tutorial/index.rst 14 additions, 3 deletionsdoc/tutorial/index.rst
- doc/tutorial/single_cell_detailed.rst 505 additions, 0 deletionsdoc/tutorial/single_cell_detailed.rst
- doc/tutorial/single_cell_detailed_recipe.rst 419 additions, 0 deletionsdoc/tutorial/single_cell_detailed_recipe.rst
- doc/tutorial/single_cell_detailed_result.svg 1244 additions, 0 deletionsdoc/tutorial/single_cell_detailed_result.svg
- doc/tutorial/single_cell_model.rst 11 additions, 10 deletionsdoc/tutorial/single_cell_model.rst
- python/example/morph.swc 15 additions, 0 deletionspython/example/morph.swc
- python/example/single_cell_detailed.py 116 additions, 0 deletionspython/example/single_cell_detailed.py
- python/example/single_cell_detailed_recipe.py 178 additions, 0 deletionspython/example/single_cell_detailed_recipe.py
- python/example/single_cell_swc.py 1 addition, 1 deletionpython/example/single_cell_swc.py
- python/morphology.cpp 1 addition, 1 deletionpython/morphology.cpp
Please register or sign in to comment