I’m trying to get the environment tested w/o needing to run the notebook.
This worked:
jupyter nbconvert --execute --ExecutePreprocessor.timeout=600 --to notebook examples/tabular.ipynb
This fails:
jupyter nbconvert --execute --ExecutePreprocessor.timeout=600 --to notebook examples/cifar.ipynb
[NbConvertApp] WARNING | Config option `template_path` not recognized by `NotebookExporter`.
[NbConvertApp] Converting notebook examples/cifar.ipynb to notebook
[NbConvertApp] Executing notebook with kernel: python3
[NbConvertApp] ERROR | Error while converting 'examples/cifar.ipynb'
Traceback (most recent call last):
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/nbconvertapp.py", line 393, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/exporters/exporter.py", line 174, in from_filename
return self.from_file(f, resources=resources, **kw)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/exporters/exporter.py", line 192, in from_file
return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/exporters/notebook.py", line 31, in from_notebook_node
nb_copy, resources = super(NotebookExporter, self).from_notebook_node(nb, resources, **kw)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/exporters/exporter.py", line 134, in from_notebook_node
nb_copy, resources = self._preprocess(nb_copy, resources)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/exporters/exporter.py", line 311, in _preprocess
nbc, resc = preprocessor(nbc, resc)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/preprocessors/base.py", line 47, in __call__
return self.preprocess(nb, resources)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 262, in preprocess
nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/preprocessors/base.py", line 69, in preprocess
nb.cells[index], resources = self.preprocess_cell(cell, resources, index)
File "/home/stas/anaconda3/envs/fastai_v1/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 286, in preprocess_cell
raise CellExecutionError.from_cell_and_msg(cell, out)
nbconvert.preprocessors.execute.CellExecutionError: An error occurred while executing the following cell:
------------------
untar_data(CIFAR_PATH)
------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-aac8ec0ed7ac> in <module>()
----> 1 untar_data(CIFAR_PATH)
/mnt/disc1/fast.ai-1/br/fastai/master/fastai/docs.py in untar_data(path)
25
26 def untar_data(path):
---> 27 download_data(path.name)
28 if not path.exists(): tarfile.open(f_name(path), 'r:gz').extractall(DATA_PATH)
29
/mnt/disc1/fast.ai-1/br/fastai/master/fastai/docs.py in download_data(name)
22 def download_data(name):
23 dest = DATA_PATH/f_name(name)
---> 24 if not dest.exists(): download_url(f'{URL}{f_name(name)}', dest)
25
26 def untar_data(path):
/mnt/disc1/fast.ai-1/br/fastai/master/fastai/core.py in download_url(url, dest, overwrite)
153
154 with open(dest,'wb') as f:
--> 155 pbar = progress_bar(range(file_size), auto_update=False)
156 nbytes,buffer = 0,[1]
157 while len(buffer):
TypeError: __init__() got an unexpected keyword argument 'auto_update'
TypeError: __init__() got an unexpected keyword argument 'auto_update'
update: it breaks in jupyter too, the same way.
It’d probably make a good basic test to just successfully run the example notebooks from the command line.