sphinx扩展,用于构建任何python脚本的html版本并将其放入示例库中。
sphinx-galler的Python项目详细描述
Sphinx扩展,用于构建任何Python的HTML版本 脚本并将其放入示例库中
谁使用斯芬克斯画廊
安装
通过pip
安装您可以使用以下命令通过PIP进行直接安装:
$ pip install sphinx-gallery
Sphinx Gallery在安装时不会管理其依赖项,因此 您需要手动安装它们。我们最小的依赖 是:
- 狮身人面像=1.5(建议1.8)
- Matplotlib文件
- 枕头
Sphinx Gallery还支持以下软件包:
- 海伯恩
- 梅亚维
作为开发人员安装
您可以从我们的Github repository获得最新的开发源。你需要 setuptools安装在系统中以安装Sphinx Gallery
除了上面列出的依赖项之外,您还需要安装pytest 以及测试的pytest覆盖率
要安装所有内容,请执行以下操作:
$ git clone https://github.com/sphinx-gallery/sphinx-gallery
$ cd sphinx-gallery
$ pip install -r requirements.txt
$ pip install pytest pytest-coverage
$ pip install -e .
此外,您还需要以下依赖项来构建 sphinx-gallery文档:
- scipy
- 肖伯恩