[IPython-dev] Nbconvert syntax coloring

david_co aradan.d at gmail.com
Wed Nov 5 07:56:20 EST 2014


Is there a way to change the default style of the code highlighting (the
colouring) of the nbconvert to latex?

I was trying to modify the file

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

and use something like

latex = _pygments_highlight(source, LatexFormatter(style='monokai'),
language, metadata)

in the Highlight2Latex class.

When I convert my ipynb file, I don't get errors, but the style is still the
same


Regards,
David



--
View this message in context: http://python.6.x6.nabble.com/Nbconvert-syntax-coloring-tp5076679.html
Sent from the IPython - Development mailing list archive at Nabble.com.



More information about the IPython-dev mailing list