Skip to content

Commit abe0fd5

Browse files
committed
show the source code for examples in docstrings
1 parent fd06c2e commit abe0fd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
import os
1818
import shlex
1919

20+
import seaborn
21+
clear_bkgd = {'axes.facecolor':'none', 'figure.facecolor':'none'}
22+
seaborn.set(style='ticks', context='talk', color_codes=True, rc=clear_bkgd)
2023

2124
# If extensions (or modules to document with autodoc) are in another directory,
2225
# add these directories to sys.path here. If the directory is relative to the
@@ -60,6 +63,12 @@
6063
# source_suffix = ['.rst', '.md']
6164
source_suffix = '.rst'
6265

66+
# Include the example source for plots in API docs
67+
plot_include_source = True
68+
plot_formats = [("png", 150)]
69+
plot_html_show_formats = False
70+
plot_html_show_source_link = False
71+
6372
# The encoding of source files.
6473
#source_encoding = 'utf-8-sig'
6574

0 commit comments

Comments
 (0)