[IPython-User] html from ipython nb

Comer Duncan comer.duncan@gmail....
Thu Feb 23 15:08:53 CST 2012


Fernando,

I have installed docutils 0.9 with python 2.7 and tried your script
again. Something is wrong.  Here is the result:

[homelap-3:~/ipynb_to_html_converter] comerduncan% python2.7
./nb2html.py WedMaxC.ipynb
Traceback (most recent call last):
  File "./nb2html.py", line 178, in <module>
    main(sys.argv[1])
  File "./nb2html.py", line 174, in main
    rst2simplehtml(nb2rst(fname))
  File "./nb2html.py", line 114, in nb2rst
    rst = convert_notebook(nb)
  File "./nb2html.py", line 102, in convert_notebook
    lines.extend(conv(cell))
  File "./nb2html.py", line 47, in code_cell
    conv = converters[output.output_type]
KeyError: u'stream'

Can you please advise?  Sorry to bother you with such.  I do want to
help but am afraid I don't know enough...but want to learn.

Comer

On Thu, Feb 23, 2012 at 4:01 PM, Fernando Perez <fperez.net@gmail.com> wrote:
> On Thu, Feb 23, 2012 at 9:35 AM, Comer Duncan <comer.duncan@gmail.com> wrote:
>> I did not try
>> installing docutils 0.9 using python 2.7.2 that I mainly use.
>
> Yes, that's precisely what I'm using: python 2.7.2 with docutils 0.9.
>
> Cheers,
>
> f
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user


More information about the IPython-User mailing list