I am trying to execute and save a notebook with the "ir" kernel but am 
getting an error. It runs find under `jupyter notebook` Here is a notebook 
that fails

https://gist.github.com/jonathan-taylor/3201952fcf518edfc21cbed4cc12e105

*~/git-repos/datascience_101 **(master) *$ jupyter nbconvert --execute --to 
notebook --allow-errors modules/intro/intro-lab01.ipynb

[NbConvertApp] Converting notebook modules/intro/intro-lab01.ipynb to 
notebook

[NbConvertApp] Executing notebook with kernel: ir

Traceback (most recent call last):

  File "/Users/jonathantaylor/anaconda/bin/jupyter-nbconvert", line 6, in 
<module>

    main()

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/jupyter_core/application.py",
 
line 267, in launch_instance

    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/traitlets/config/application.py",
 
line 589, in launch_instance

    app.start()

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/nbconvertapp.py",
 
line 289, in start

    self.convert_notebooks()

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/nbconvertapp.py",
 
line 412, in convert_notebooks

    self.convert_single_notebook(notebook_filename)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/nbconvertapp.py",
 
line 383, in convert_single_notebook

    output, resources = self.export_single_notebook(notebook_filename, 
resources)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/nbconvertapp.py",
 
line 335, in export_single_notebook

    output, resources = self.exporter.from_filename(notebook_filename, 
resources=resources)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/exporters/exporter.py",
 
line 165, in from_filename

    return self.from_notebook_node(nbformat.read(f, as_version=4), 
resources=resources, **kw)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/exporters/notebook.py",
 
line 26, in from_notebook_node

    nb_copy, resources = super(NotebookExporter, 
self).from_notebook_node(nb, resources, **kw)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/exporters/exporter.py",
 
line 130, in from_notebook_node

    nb_copy, resources = self._preprocess(nb_copy, resources)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/exporters/exporter.py",
 
line 302, in _preprocess

    nbc, resc = preprocessor(nbc, resc)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/preprocessors/base.py",
 
line 47, in __call__

    return self.preprocess(nb,resources)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/preprocessors/execute.py",
 
line 83, in preprocess

    nb, resources = super(ExecutePreprocessor, self).preprocess(nb, 
resources)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/preprocessors/base.py",
 
line 70, in preprocess

    nb.cells[index], resources = self.preprocess_cell(cell, resources, 
index)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/preprocessors/execute.py",
 
line 97, in preprocess_cell

    outputs = self.run_cell(cell)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbconvert/preprocessors/execute.py",
 
line 183, in run_cell

    out = output_from_msg(msg)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbformat/v4/nbbase.py",
 
line 77, in output_from_msg

    data=content['data'],

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbformat/v4/nbbase.py",
 
line 42, in new_output

    validate(output, output_type)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbformat/v4/nbbase.py",
 
line 23, in validate

    return validate(node, ref=ref, version=nbformat)

  File 
"/Users/jonathantaylor/anaconda/lib/python2.7/site-packages/nbformat/validator.py",
 
line 156, in validate

    raise better_validation_error(e, version, version_minor)

jsonschema.exceptions.ValidationError: None is not valid under any of the 
given schemas


Failed validating u'oneOf' in 
schema[u'properties'][u'data'][u'patternProperties'][u'^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\-\\+\\.]+$']:

    {u'oneOf': [{u'type': u'string'},

                {u'items': {u'type': u'string'}, u'type': u'array'}]}


On instance[u'data'][u'text/latex']:

    None

Others work 
fine: https://gist.github.com/jonathan-taylor/764d10c8029730b359afcc5db81c6351

*~/git-repos/datascience_101 **(master) *$ jupyter nbconvert --execute --to 
notebook --allow-errors modules/intro/intro-lab02.ipynb

[NbConvertApp] Converting notebook modules/intro/intro-lab02.ipynb to 
notebook

[NbConvertApp] Executing notebook with kernel: ir

[NbConvertApp] Writing 623234 bytes to intro-lab02.nbconvert.ipynb

*~/git-repos/datascience_101 **(master) *$ 


(The second one has some data files I could include if necessary).

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/f3fe113f-3439-41b4-9d41-0e38f2774051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to