-
Notifications
You must be signed in to change notification settings - Fork 561
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
convert to RST - cell magics in code blocks? #47
Comments
The template doesn't look at the code of the cell at all, it just puts it all in a You could write a custom template which would look at cell magics and produce appropriate rst directives. I think this would probably be useful for us too, now that we're converting notebooks into rst docs. |
|
It seems like there are two pieces to this issue, one part should be fixed (it should put the language the notebook is written in not The former should be dealt with for 5.0, the latter maybe no_action (or wishlist if it is something we plan to implement) is that right? I'm going to open a new issue for dealing with the former, and mark this as no_action. |
One possibility for the latter part is that we could specify the language as IPython, relying on our own lexers to deal with highlighting magics. I don't know how well they do currently with cell magics using other languages. |
Closing as there's no action taken and the complexity of the change is questionable. |
When converting a notebook to RST, code blocks with magics are still converted into python code blocks. For example, this:
... gets translated to this:
Shouldn't it be converted to recognize the language specific cell magics, like the following?
The text was updated successfully, but these errors were encountered: