The reason for that is that nbconvert2 will mainly be a python library where in pseudo code you can do : M圜onverter = NBConverter(config=config)Ĭonverted_files = M圜nvert(ipynb)Įntry point will come later, once the API is stabilized. Yes I know this is not obvious, and it will probably change hence no doc. nbconvert2.py -no-stdout -write=True Īnd it should write your (tex) files as long as extracted figures in cwd. nbconvert2.py -help-all should give you some option you can use in your profile.) List of current available profiles: $ ls -l1 profile|cut -d. We also need an additional setup for Chromium. You need to run the following code in your command prompt. Here we would use the package called notebook-as-pdf to help us convert Jupyter Notebook as PDF file.
Nbviewer use nbconvert2 so it's pretty decent with HTML. The first thing we need to do is to install the necessary package. Graph beeing cut in chrome is a known issue (Chrome does not respect some print css), and works much better with firefox, not all versions still.Īs for nbconvert2, it still highly dev and docs need to be written.
If you are on a IPython recent enough version, do not use print view, just use the the normal print dialog. It's just a warning that we do not bugfix nbconvert1 anymore. Nbconvert is not yet fully replaced by nbconvert2, you can still use it if you wish, otherwise we would have removed the executable. In all cases, it appears that I was missing the library 'pdflatex'. Update Fri.: The IPython v3 syntax differs, it is simpler $ ipython nbconvert -to slides myfile.ipynb However, HTML works great using 'slides', and it is beautiful! CRITICAL | The 'export_format' trait of a NbConvertApp instance must be any of or None, but a value of u'pdf' was specified. CRITICAL | Bad config encountered during initialization: $ ipython nbconvert -to latex -post PDF myfile.ipynb
The docs imply I should be able to get it to work with latex, so maybe my latex is not working.