You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the Python pygments module for syntax highlighting. In Python we can do
from pygments.lexers import JuliaLexer
but the apparently equivalent
using PyCall
@pyimport pygments.lexers as lexers
lexers.JuliaLexer
gives the error
JuliaLexer not defined
while loading In[3], in expression starting on line 1
I had a look at the pygments package, and there seems to be some strange initialization going on in lexers/__init__.py that automagically instantiates the Lexer objects, or something like that, that means that the objects are not found by PyCall.
Is there any way round this problem?
The text was updated successfully, but these errors were encountered:
I am trying to use the Python
pygments
module for syntax highlighting. In Python we can dobut the apparently equivalent
gives the error
I had a look at the
pygments
package, and there seems to be some strange initialization going on inlexers/__init__.py
that automagically instantiates the Lexer objects, or something like that, that means that the objects are not found byPyCall
.Is there any way round this problem?
The text was updated successfully, but these errors were encountered: