Closed nvaytet closed 1 year ago
I can confirm that the pygments.lexers
entry is no longer added to entry_points.txt.
It is because of the explicit
setup_args["entry_points"] = {"console_scripts": find_entry_points()}
at line 142 of setup.py, which should also include the pygments.lexers
entry present in setup.cfg
Thanks @nvaytet for reporting this and @maparent for finding the root cause for the problem.
It looks like the IPython folks are already working on fixing this: https://github.com/ipython/ipython/issues/13845, https://github.com/ipython/ipython/pull/13848.
In the meantime, a possible work-around should be to disallow the broken IPython version:
ipython!=8.7.0
Had the same issue here. The old workaround of adding "IPython.sphinxext.ipython_console_highlighting"
to "extensions"
in conf.py
from https://github.com/spatialaudio/nbsphinx/issues/24 seems to fix the problem for me.
A little update: https://github.com/ipython/ipython/pull/13848 has been merged, now we are only waiting for a new release.
8.8.0 just got released yesterday
Thanks @Zethson, I can confirm that syntax highlighting works again with IPython 8.8.
I do not know if the issue lies with
nbsphinx
ornbconvert
, but after upgrading fromipython==8.5.0
toipython==8.7.0
, the syntax highlighting in our sphinx docs is gone. Only black text in the code blocks.Before:
After: