Show More
@@ -60,7 +60,7 def convert(nb, to_version): | |||||
60 | convert_function = versions[version].downgrade |
|
60 | convert_function = versions[version].downgrade | |
61 |
|
61 | |||
62 | # Convert and make sure version changed during conversion. |
|
62 | # Convert and make sure version changed during conversion. | |
63 |
converted = convert_function(nb) |
|
63 | converted = convert_function(nb) | |
64 | if converted.get('nbformat', 1) == version: |
|
64 | if converted.get('nbformat', 1) == version: | |
65 | raise Exception("Cannot convert notebook from v%d to v%d. Operation" \ |
|
65 | raise Exception("Cannot convert notebook from v%d to v%d. Operation" \ | |
66 | "failed silently." % (major, step_version)) |
|
66 | "failed silently." % (major, step_version)) |
@@ -154,7 +154,8 def find_package_data(): | |||||
154 | 'IPython.nbconvert' : ['templates/*.tpl', 'templates/latex/*.tplx', |
|
154 | 'IPython.nbconvert' : ['templates/*.tpl', 'templates/latex/*.tplx', | |
155 | 'templates/latex/skeleton/*.tplx', 'templates/skeleton/*', |
|
155 | 'templates/latex/skeleton/*.tplx', 'templates/skeleton/*', | |
156 | 'templates/reveal_internals/*.tpl', 'tests/files/*.*', |
|
156 | 'templates/reveal_internals/*.tpl', 'tests/files/*.*', | |
157 | 'exporters/tests/files/*.*'] |
|
157 | 'exporters/tests/files/*.*'], | |
|
158 | 'IPython.nbformat' : ['tests/*.ipynb'] | |||
158 | } |
|
159 | } | |
159 | return package_data |
|
160 | return package_data | |
160 |
|
161 |
General Comments 0
You need to be logged in to leave comments.
Login now