You also may need to touch this:
https://github.com/jupyter/nbconvert/blob/master/nbconvert/filters/highlight.py
if you end up needing to subclass `LatexFormatter()`.

On Thu, Dec 29, 2016 at 10:50 Mike Pacer <[email protected]> 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]> 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].
>
>
> 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/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/CAM3SX45BUhUxiXi9yW%3DpauonFGKJjTFbYnkUXV%2Byr-M0CHEtGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to