Nicolas P. Rougier is a full-time research scientist at Inria which is the French national institute for research in computer science and control. This is a public scientific and technological establishment (EPST) under the double supervision of the Research & Education Ministry, and the Ministry of Economy Finance and Industry. Nicolas P. Rougier is working within the Mnemosyne project which lies at the frontier between integrative and computational neuroscience in association with the Institute of Neurodegenerative Diseases, the Bordeaux laboratory for research in computer science (LaBRI), the University of Bordeaux and the national center for scientific research (CNRS).
He has been using Python for more than 15 years and numpy for more than 10 years for modeling in neuroscience, machine learning and for advanced visualization (OpenGL). Nicolas P. Rougier is the author of several online resources and tutorials (Matplotlib, numpy, OpenGL) and he's teaching Python, numpy and scientific visualization at the University of Bordeaux and in various conferences and schools worldwide (SciPy, EuroScipy, etc). He's also the author of the popular article Ten Simple Rules for Better Figures and a popular matplotlib tutorial.
这本书是用 restructured text 格式撰写,通过 docutils 中的 rst2html.py 命令编译生成。
如果你想重新生成本书的html版本,请在本书根目录中运行命令:
$ rst2html.py --link-stylesheet --cloak-email-addresses \ --toc-top-backlinks --stylesheet=book.css \ --stylesheet-dirs=. book.rst book.html
源代码在https://github.com/rougier/from-python-to-numpy.
这不是一本Python入门书,你需要熟悉Python,并了解Numpy。 如果你没有这些知识,可先学习 bibliography_ 中列举的内容。
我们将使用一些命名约定:如果没有特别说明,那么默认 numpy, scipy 和 matplotlib 三个库的导入方式如下:
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
我们使用的是当前最新版的库,版本如下:
Packages | Version |
---|---|
Python | 3.6.0 |
Numpy | 1.12.0 |
Scipy | 0.18.1 |
Matplotlib | 2.0.0 |
如果你想参与本书创作,你可以:
- 审核章节(请先联系我)
- 报告问题 (https://github.com/rougier/from-python-to-numpy/issues)
- 语言修正 (https://github.com/rougier/from-python-to-numpy/issues)
- 为本书设计一个更好的html模版
- 在Github上点赞 (https://github.com/rougier/from-python-to-numpy)
如果你是一个编辑,对出版本书有兴趣,你可以 联系我。 但有几个要求:同意这个在线版本以及后续版本的存在和开放获取,(即`这个地址 <http://www.labri.fr/perso/nrougier/from-python-to-numpy>`_)。 你需要知道用 restructured text 排版而不是 Word。 能提供高质量的支持服务,更重要的是,有一个超赞的latex模版。
书
本书采用如下许可证 Creative Commons Attribution-Non Commercial-Share Alike 4.0 International License。 你可以:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material
The licensor cannot revoke these freedoms as long as you follow the license terms.
代码
The code is licensed under the OSI-approved BSD 2-Clause License.