File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+
4
+ import glob
5
+
6
+ from IPython .config import Config
7
+ from IPython .nbconvert import HTMLExporter
8
+
9
+ c = Config ({
10
+ 'ExecutePreprocessor' : {'enabled' : True }
11
+ })
12
+
13
+ exporter = HTMLExporter (config = c )
14
+
15
+ for filename in glob .glob ("example-notebooks/*.ipynb" ):
16
+ print (filename )
17
+ exporter .from_filename (filename )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ commands = flake8 {posargs} github3/
24
24
basepython = python3.4
25
25
deps =
26
26
ipython[notebook]
27
- commands = find example-notebooks -name ' *.ipynb ' -exec ipython nbconvert --to notebook \{\} --output /dev/null --execute \ ;
27
+ commands = python tests/nbtest.py
28
28
29
29
[testenv:docstrings]
30
30
deps =
You can’t perform that action at this time.
0 commit comments