Show More
@@ -134,13 +134,18 b' class NbConvertApp(BaseIPythonApplication):' | |||
|
134 | 134 | self.init_writer() |
|
135 | 135 | |
|
136 | 136 | def init_notebooks(self): |
|
137 | """ | |
|
138 | Add notebooks to the config if needed. Glob each notebook to replace | |
|
139 | notebook patterns with filenames. | |
|
137 | """Construct the list of notebooks. | |
|
138 | If notebooks are passed on the command-line, | |
|
139 | they override notebooks specified in config files. | |
|
140 | Glob each notebook to replace notebook patterns with filenames. | |
|
140 | 141 | """ |
|
141 | 142 | |
|
142 | #Get any additional notebook patterns from the commandline | |
|
143 | patterns = self.notebooks + self.extra_args | |
|
143 | # Specifying notebooks on the command-line overrides (rather than adds) | |
|
144 | # the notebook list | |
|
145 | if self.extra_args: | |
|
146 | patterns = self.extra_args | |
|
147 | else: | |
|
148 | patterns = self.notebooks | |
|
144 | 149 | |
|
145 | 150 | #Use glob to replace all the notebook patterns with filenames. |
|
146 | 151 | filenames = [] |
General Comments 0
You need to be logged in to leave comments.
Login now