<div dir="ltr">Dear Ipython,<div><br></div><div>I am trying to convert an ipython notebook to share it with a colleague.</div><div style>I'm using master 5cc2804.</div><div style><br></div><div style>1) The easiest would be a pdf. The README file claims that </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>nbconvert provides command line utilities to convert to and from IPython<br>
notebooks and standard formats:<br>[...]<br>- PDF</blockquote><div style> </div><div style>but if I do `nbconvert -f pdf nb.ipynb` I get</div><div style><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Unknown format 'pdf', known formats are: latex, markdown, reveal, py, blogger-html, html, rst (default)</blockquote><div><br></div><div style>Which one is correct? Probably the README should be corrected taking out pdf (I can do it)</div>
<div><br></div><div style>2) next option: latex. It's great, except for the fact cells are float, and so I have some of the markdown and heading cells that are displaced after or before the place they should be. (This is latex, I know :) )</div>
<div style><br></div><div style>3) next option (and probably the most natural) would be a html. But if I try I get the error at the end of this mail. I use ipython 0.13.1.rc2 shipped with Ubuntu Quantal. </div><div style>
Do anyone knows what's going on? (Do I have to change version of Ipython?)</div><div style><br></div><div style>Thanks,</div><div style><br></div><div style>Francesc </div><div style><br></div><div style><br></div><div style>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">>>> nbconvert -f html file.ipynb <br>Traceback (most recent call last):<br>
File "~/bin/nbconvert", line 89, in <module><br> exclude=exclude_cells, highlight_source=args.no_highlighting)<br> File "~/bin/nbconvert", line 60, in main<br> converter.render()<br> File "~/Codes/Gitrepos/nbconvert/converters/base.py", line 211, in render<br>
self.output = self.convert()<br> File "~/Codes/Gitrepos/nbconvert/converters/base.py", line 190, in convert<br> lines.extend(self.optional_header())<br> File "~/Codes/Gitrepos/nbconvert/converters/html.py", line 114, in optional_header<br>
return ['<html>', '<head>'] + self.header_body() + \ <br> File "~/Codes/Gitrepos/nbconvert/converters/html.py", line 94, in header_body<br> header.extend(self._stylesheet(sheet))<br>
File "~/Codes/Gitrepos/nbconvert/converters/html.py", line 60, in _stylesheet<br> with io.open(fname, encoding='utf-8') as f:<br>IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/IPython/frontend/html/notebook/static/css/boilerplate.css'</blockquote>
</div><div style><br></div><div style><br></div></div></div>