{"action":"opened","issue":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/130","labels_url":"https://api.github.com/repos/jupyter/nbconvert/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/nbconvert/issues/130/comments","events_url":"https://api.github.com/repos/jupyter/nbconvert/issues/130/events","html_url":"https://github.com/jupyter/nbconvert/issues/130","id":110369695,"number":130,"title":"nbconvert with execute gives error","user":{"login":"dschneiderch","id":7461221,"avatar_url":"https://avatars.githubusercontent.com/u/7461221?v=3","gravatar_id":"","url":"https://api.github.com/users/dschneiderch","html_url":"https://github.com/dschneiderch","followers_url":"https://api.github.com/users/dschneiderch/followers","following_url":"https://api.github.com/users/dschneiderch/following{/other_user}","gists_url":"https://api.github.com/users/dschneiderch/gists{/gist_id}","starred_url":"https://api.github.com/users/dschneiderch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschneiderch/subscriptions","organizations_url":"https://api.github.com/users/dschneiderch/orgs","repos_url":"https://api.github.com/users/dschneiderch/repos","events_url":"https://api.github.com/users/dschneiderch/events{/privacy}","received_events_url":"https://api.github.com/users/dschneiderch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T04:07:46Z","updated_at":"2015-10-08T04:07:46Z","closed_at":null,"body":"i'm trying to execute and save my notebook but i keep getting an error. I tried `--execute` and then the more verbose `--ExecutePreprocessor.enabled=True` but neither worked. in the included example I also tried `--ExecutePreprocessor.allow_errors=True`. The conversion works if the notebook is not executed (both with nbconvert and from the gui).\r\n\r\ni'm running homebrew jupyter 4.0.6 on OSX 10.9.5\r\nany suggestions?\r\n\r\n```bash\r\niMac:~/Documents/snotel-regression_project/src $ jupyter nbconvert --debug --ExecutePreprocessor.enabled=True --ExecutePreprocessor.allow_errors=True --to html compare_maxswe.ipynb\r\n[NbConvertApp] Config changed:\r\n[NbConvertApp] {'NbConvertApp': {'export_format': u'html', 'log_level': 10}, 'ExecutePreprocessor': {'allow_errors': True, 'enabled': True}}\r\n[NbConvertApp] Searching [u'/Volumes/Dominik/Documents/snotel-regression_project/src', '/Users/dosc3612/.jupyter', '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files\r\n[NbConvertApp] Attempting to load config file jupyter_config.py in path /etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_config.json in path /etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_config.py in path /usr/local/etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_config.json in path /usr/local/etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_config.py in path /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_config.json in path /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_config.py in path /Users/dosc3612/.jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_config.json in path /Users/dosc3612/.jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_config.py in path /Volumes/Dominik/Documents/snotel-regression_project/src\r\n[NbConvertApp] Attempting to load config file jupyter_config.json in path /Volumes/Dominik/Documents/snotel-regression_project/src\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.py in path /etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.json in path /etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.py in path /usr/local/etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.json in path /usr/local/etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.py in path /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.json in path /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/etc/jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.py in path /Users/dosc3612/.jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.json in path /Users/dosc3612/.jupyter\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.py in path /Volumes/Dominik/Documents/snotel-regression_project/src\r\n[NbConvertApp] Attempting to load config file jupyter_nbconvert_config.json in path /Volumes/Dominik/Documents/snotel-regression_project/src\r\n[NbConvertApp] Converting notebook compare_maxswe.ipynb to html\r\n[NbConvertApp] Notebook name is 'compare_maxswe'\r\n[NbConvertApp] Applying preprocessor: ExecutePreprocessor\r\n[NbConvertApp] Executing notebook with kernel: ir\r\n[NbConvertApp] Found kernel ir in /Users/dosc3612/Library/Jupyter/kernels\r\n[NbConvertApp] Native kernel (python2) available from /usr/local/lib/python2.7/site-packages/ipykernel/resources\r\n[NbConvertApp] Connecting to: tcp://127.0.0.1:64942\r\n[NbConvertApp] connecting shell channel to tcp://127.0.0.1:64939\r\n[NbConvertApp] Connecting to: tcp://127.0.0.1:64939\r\n[NbConvertApp] connecting iopub channel to tcp://127.0.0.1:64940\r\n[NbConvertApp] Connecting to: tcp://127.0.0.1:64940\r\n[NbConvertApp] connecting stdin channel to tcp://127.0.0.1:64941\r\n[NbConvertApp] Connecting to: tcp://127.0.0.1:64941\r\n[NbConvertApp] connecting heartbeat channel to tcp://127.0.0.1:64943\r\n> IRkernel::main()\r\n[NbConvertApp] Executing cell:\r\nsetwd('~/Documents/snotel-regression_project')\r\nbasepath='reports/sweinterp_compare'\r\nrecon.version='v3.1'\r\nconfig=''\r\ncovrange='idp1'\r\nsnotelscale='scale'\r\ndateflag='B'\r\ncost='r2'\r\nfscaMatch='wofsca'\r\nresid=''\r\nif(resid==''){\r\n\tresidblending='unblended'\r\n} else {\r\n\tresidblending='blended'\r\n}\r\nproduct='phv'\r\ninpath=file.path(basepath,paste(product,fscaMatch,snotelscale,dateflag,cost,residblending,sep='-'))\r\ninpath\r\n[NbConvertApp] ERROR | failed to run cell: KeyError('status',)\r\n[NbConvertApp] ERROR | setwd('~/Documents/snotel-regression_project')\r\nbasepath='reports/sweinterp_compare'\r\nrecon.version='v3.1'\r\nconfig=''\r\ncovrange='idp1'\r\nsnotelscale='scale'\r\ndateflag='B'\r\ncost='r2'\r\nfscaMatch='wofsca'\r\nresid=''\r\nif(resid==''){\r\n\tresidblending='unblended'\r\n} else {\r\n\tresidblending='blended'\r\n}\r\nproduct='phv'\r\ninpath=file.path(basepath,paste(product,fscaMatch,snotelscale,dateflag,cost,residblending,sep='-'))\r\ninpath\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/jupyter-nbconvert\", line 6, in <module>\r\n    main()\r\n  File \"/usr/local/lib/python2.7/site-packages/jupyter_core/application.py\", line 267, in launch_instance\r\n    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/traitlets/config/application.py\", line 592, in launch_instance\r\n    app.start()\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/nbconvertapp.py\", line 286, in start\r\n    self.convert_notebooks()\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/nbconvertapp.py\", line 409, in convert_notebooks\r\n    self.convert_single_notebook(notebook_filename)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/nbconvertapp.py\", line 380, in convert_single_notebook\r\n    output, resources = self.export_single_notebook(notebook_filename, resources)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/nbconvertapp.py\", line 332, in export_single_notebook\r\n    output, resources = self.exporter.from_filename(notebook_filename, resources=resources)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/exporters/exporter.py\", line 166, in from_filename\r\n    return self.from_notebook_node(nbformat.read(f, as_version=4), resources=resources, **kw)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/exporters/html.py\", line 65, in from_notebook_node\r\n    return super(HTMLExporter, self).from_notebook_node(nb, resources, **kw)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/exporters/templateexporter.py\", line 198, in from_notebook_node\r\n    nb_copy, resources = super(TemplateExporter, self).from_notebook_node(nb, resources, **kw)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/exporters/exporter.py\", line 131, in from_notebook_node\r\n    nb_copy, resources = self._preprocess(nb_copy, resources)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/exporters/exporter.py\", line 303, in _preprocess\r\n    nbc, resc = preprocessor(nbc, resc)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/preprocessors/base.py\", line 47, in __call__\r\n    return self.preprocess(nb,resources)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/preprocessors/execute.py\", line 83, in preprocess\r\n    nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/preprocessors/base.py\", line 70, in preprocess\r\n    nb.cells[index], resources = self.preprocess_cell(cell, resources, index)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/preprocessors/execute.py\", line 97, in preprocess_cell\r\n    outputs = self.run_cell(cell)\r\n  File \"/usr/local/lib/python2.7/site-packages/nbconvert/preprocessors/execute.py\", line 128, in run_cell\r\n    if msg['metadata']['status'] == 'error' and not self.allow_errors:\r\nKeyError: 'status'\r\n```"}}