-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax highlighting doesn't work for Python cells with magic #59
Comments
The Jupyter Notebook and I just enabled processing of cell magics in #60. However, the The I just saw that this was already reported to |
Thats great, thanks for that. Will wait on the IPython fix then! |
Any updates here ? Still does not work with |
You should ask over there: ipython/ipython#9099
|
It mostly works now, the missing |
My PR has been merged, so I think this should be fine now. If there is still some highlighting missing, please leave a comment! |
Hello @mgeier, I'm commenting this because I have the same issue, on a custom magic. The syntax highlighting within the Jupyter document works fine: But, when renderer using Any idea on how to fix that? Versions info:
|
What does See #59 (comment). |
@mgeier (Within the notebook viewer) (When exported as HTML) |
Yes, or maybe even to IPython, see e.g. ipython/ipython#9099 and ipython/ipython#11137. |
@mgeier done :-) |
If I have a cell in a Python 3 notebook that says e.g.
then when rendered with nbsphinx, the
# some python code
looses its syntax highlighting. Could it be made so that the syntax highlighting is kept, the same way it does in Jupyter notebook itself?Some info about my setup incase its just a bug:
The text was updated successfully, but these errors were encountered: