Show More
@@ -17,8 +17,6 b' process.' | |||||
17 | from __future__ import print_function, absolute_import |
|
17 | from __future__ import print_function, absolute_import | |
18 |
|
18 | |||
19 | # Stdlib imports |
|
19 | # Stdlib imports | |
20 | # Used to find Sphinx package location |
|
|||
21 | import sphinx |
|
|||
22 | import os.path |
|
20 | import os.path | |
23 |
|
21 | |||
24 | # Used to set the default date to today's date |
|
22 | # Used to set the default date to today's date | |
@@ -123,6 +121,8 b' class SphinxTransformer(Transformer):' | |||||
123 | Additional resources used in the conversion process. Allows |
|
121 | Additional resources used in the conversion process. Allows | |
124 | transformers to pass variables into the Jinja engine. |
|
122 | transformers to pass variables into the Jinja engine. | |
125 | """ |
|
123 | """ | |
|
124 | # import sphinx here, so that sphinx is not a dependency when it's not used | |||
|
125 | import sphinx | |||
126 |
|
126 | |||
127 | # TODO: Add versatile method of additional notebook metadata. Include |
|
127 | # TODO: Add versatile method of additional notebook metadata. Include | |
128 | # handling of multiple files. For now use a temporay namespace, |
|
128 | # handling of multiple files. For now use a temporay namespace, |
General Comments 0
You need to be logged in to leave comments.
Login now