Ah ok. Well if it's not just a default theme that I can pick in the LaTeX 
package "minted", I won't bother. Too much work for too little gain. But 
thanks for your answer anyway, perhaps someone else will pick it up :-)

On Thursday, 29 December 2016 19:50:22 UTC+1, Mike Pacer wrote:
>
> Because it's not a default theme, I think this will take a bit of custom 
> work, but nothing too crazy.
>
> The first thing to note is that jupyter uses codemirror for syntax 
> highlighting and creates an "ipython" theme in its CSS:
>
>
> https://github.com/jupyter/notebook/blob/master/notebook/static/notebook/less/highlight.less
>
> However, highlighting in nbconvert is handled by pygments, that means you 
> can't use codemirror CSS directly. That's fine since you wanted this for 
> LaTeX export, and not HTML export (for that, see 
> https://github.com/jupyter/nbconvert/issues/447).
>
> But once you can reëncode the theme into pygments, then I think you will 
> need to add a custom preprocessor or exporter in order to overwrite the 
> default pygments theme, which is applied at 
> https://github.com/jupyter/nbconvert/blob/master/nbconvert/preprocessors/latex.py
> .
>
> Ok that should be enough to get you started, though I'm sure there are 
> other areas where you'll run into friction. 
>
> Please, update me if you succeed (including any details I didn't include 
> here), either on the mailing list or as an issue on 
> https://github.com/jupyter/nbconvert.
> What you learn may able to be put to use elsewhere :), in the docs if not 
> the core code itself.
>
> On Thu, Dec 29, 2016 at 08:45 Gandalf Saxe <[email protected] 
> <javascript:>> wrote:
>
>> What is the default color theme for Python in Jupiter called?
>> I wish to make my code in LaTeX using "minted" the same color theme as in 
>> Jupiter.
>>
>> Thanks.
>>
>>
>>
>>
>>
>>
>>
>>
>> -- 
>>
>>
>> You received this message because you are subscribed to the Google Groups 
>> "Project Jupyter" group.
>>
>>
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>>
>>
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>>
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jupyter/c8645a52-9b14-403c-a43b-96b4f2b27614%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jupyter/c8645a52-9b14-403c-a43b-96b4f2b27614%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/ac8be550-e4a6-417b-a7c4-22558b63bb21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to