diff --git a/doc/ext/notebook.py b/doc/ext/notebook.py index 9f0a2b48..39b77211 100644 --- a/doc/ext/notebook.py +++ b/doc/ext/notebook.py @@ -47,7 +47,7 @@ class Notebook(): self.template["worksheets"][0]["cells"].append(copy.deepcopy(self.cell_type[type_of_value])) self.template["worksheets"][0]["cells"][segment_number][type_of_value] = value - def jsondump(self, notebook_path): + def json(self, notebook_path): # writes the template to file with open(notebook_path, 'w') as output: json.dump(self.template, output, indent=2) @@ -97,4 +97,4 @@ def save_ipython_notebook(example_file, notebook_dir, notebook_path, basename): # some text segment is continuing, so add to source source.append(line) - nb.jsondump(notebook_path) + nb.json(notebook_path) diff --git a/doc/ext/plot2rst.py b/doc/ext/plot2rst.py index 14c7713b..9216365c 100644 --- a/doc/ext/plot2rst.py +++ b/doc/ext/plot2rst.py @@ -80,7 +80,7 @@ from skimage import io from skimage import transform from skimage.util.dtype import dtype_range -from notebook import * +from notebook import save_ipython_notebook LITERALINCLUDE = """