Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1910  / 2 Years ago, sat, september 17, 2022, 3:27:00

I have downloaded the ipython and ipython-notebook packages. The documentation of ipython says that I can run nbconvert to convert my notebooks to html/latex/etc. But am not able to run either nbconvert or ipython nbconvert.



 ~ ipython --version
0.13.1.rc2
~ ipython nbconvert
[TerminalIPythonApp] File not found: u'nbconvert'
~


(I don't know if this is the correct site to ask this.)


More From » ipython

 Answers
5

I experienced a similar problem in Ubuntu Xenial 16.04. Error messages led me to three apps which are needed:




  • pygments

  • pandoc

  • nodejs



After installing those three, I was able to convert an ipython notebook to HTML format without an error message, using the command line string:



ipython nbconvert --to html foo.ipynb



I found a Python2 library file which calls nodejs:



/usr/lib/python2.7/dist-packages/IPython/nbconvert/filters/markdown.py



markdown.py contains a class named NodeJSMissing which throws up a ConversionException. But if nodejs remains uninstalled, Nbconvert will try to use Pandoc instead. In that sense, nodejs is optional.


[#27827] Saturday, September 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jokaned

Total Points: 315
Total Questions: 116
Total Answers: 119

Location: Somalia
Member since Mon, Feb 27, 2023
1 Year ago
;