[python-dtcwt] 294/497: docs: add ipython directive extension

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit 7352545fc89b2edc794006de9fc3fbe6a66e8a2a
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Fri Jan 31 13:31:55 2014 +0000

    docs: add ipython directive extension
    
    Add an extension providing direct execution of Python code samples along
    with the ability to embed plots.
---
 docs/conf.py | 9 ++++++++-
 setup.py     | 2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 5a2f64e..f646e46 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -39,7 +39,14 @@ sys.path.insert(0, os.path.abspath(os.path.join('..', 'tests')))
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.mathjax']
+extensions = [
+    'sphinx.ext.autodoc',
+    'sphinx.ext.todo',
+    'sphinx.ext.coverage',
+    'sphinx.ext.mathjax',
+    'matplotlib.sphinxext.ipython_directive',
+    'IPython.sphinxext.ipython_console_highlighting',
+]
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
diff --git a/setup.py b/setup.py
index 9cdf99d..a2a7bf6 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ setup(
     install_requires=[ 'numpy', 'six', ],
 
     extras_require={
-        'docs': [ 'sphinx', 'docutils', ],
+        'docs': [ 'sphinx', 'docutils', 'matplotlib', 'ipython', ],
         'opencl': [ 'pyopencl', ],
     },
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list