Unable to make Pygments work
#261
Closed
opened 3 years ago by a-berg
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Hello. I installed pygments (system wide, i.e. not part of a conda or pipenv environment), then tried to run the small example:
The output in drracket is:
'(div ((class "highlight")) (pre (code "for x in range(3):\n print x")))
Why? I have been looking at
pipe.py
andpygments.rkt
in this repo and I can't figure it out. At first I thought it was because it was installed into an environment, but after installing it system wide it didn't work either...As a side note, couldn't just you call to
pygmentize
as an external process and fetch that html into the end result? I don't think it would be much slower while it would make environment management much simpler (for example I could install withpipx
). I think this is what pdfLaTeX does.Nevermind, found #230. Apparently I forgot I have an alias from
python3
topython
.