| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
xtensor-python-cookiecutter helps extension authors create Python extension modules making use of xtensor.
It takes care of the initial work of generating a project skeleton with
A complete setup.py compiling the extension module
A few examples included in the resulting project including
Install cookiecutter:
$ pip install cookiecutter
After installing cookiecutter, use the xtensor-python-cookiecutter:
$ cookiecutter https://github.com/xtensor-stack/xtensor-python-cookiecutter.git
As xtensor-python-cookiecutter runs, you will be asked for basic information about your custom extension project. You will be prompted for the following information:
This will produce a directory containing all the required content for a minimal extension project making use of xtensor with all the required boilerplate for package management, together with a few basic examples. The generated Python extension requires an installation of xtensor ^0.18.0, xtensor-python ^0.21.0, numpy, and pybind11 ^2.1.0.
Install the module:
$ pip install ./{{ cookiecutter.github_project_name }}/
If you have Jupyter installed, run the Test_Run notebook:
$ cd {{ cookiecutter.github_project_name }}
$ jupyter notebook
| Back | FazBrowse Home | New Git URL |