Skip to content

Commit

Permalink
Fix nbformat for readthedocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Jun 17, 2015
1 parent 9cc62d3 commit 5cd3aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/notebook_gen_sphinxext.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def setup(app):
def nb_to_rst(nb_path):
"""convert notebook to restructured text"""
exporter = rst.RSTExporter()
out, resources = exporter.from_file(nb_path)
out, resources = exporter.from_file(open(nb_path))
basename = os.path.splitext(os.path.basename(nb_path))[0]
imgdir = basename + '_files'
img_prefix = os.path.join(imgdir, basename + '_')
Expand Down

0 comments on commit 5cd3aa6

Please sign in to comment.