Can't change the pygments theme for my jupyter book #1176
Unanswered
efranzmann
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've been trying to change the syntax highlighting colours in my jupyter book from the colours used with the sphinx "book" theme to a different pygments style and I can't get it to change. Namely, I find the green strings and dark yellow comments difficult to parse and would prefer the colours in the default pygments style.
I've tried changing
pygments_style
in the sphinx config section of my _config.yml file:Colours stay the same in the pygments.css file that is generated even when I clean and rebuild the book. I've tried other themes as well and nothing changes. The only other discussion of a similar issue that I could find here was from 2021.
(Note that I'm learning all of this as I go as I fumble with jupyter-book; I have no previous experience with sphinx or pygments and if something seems obvious I've probably missed it)
Beta Was this translation helpful? Give feedback.
All reactions