add sphinx-toggleprompt#1096
Conversation
|
It's not formatting the "Out[19]:" correctly. Will fix |
|
This is good for review now |
wholmgren
left a comment
There was a problem hiding this comment.
LGTM. Thanks @jurasofish. @pvlib/pvlib-maintainer feel free to merge if you're happy with this approach
|
Thanks again @jurasofish |
|
Looking at the |
|
It doesn't hide comments generally, for example see https://docs.python.org/3/tutorial/controlflow.html#for-statements That modelchain example is a tricky case because the IPython formatting has placed the comment outside an input prompt and formatted it the same as an output, so it's indistinguishable from an output. The way to tackle it would be to get the upstream IPython formatter to give it a unique style which could then be hidden. Might need changes in pygments, not sure. Or, the IPython formatter could put comments next to "In [xx]:" cells like any normal input. |
docs/sphinx/source/api.rstfor API changes.docs/sphinx/source/whatsnewfor all changes. Includes link to the GitHub Issue with:issue:`num`or this Pull Request with:pull:`num`. Includes contributor name and/or GitHub username (link with:ghuser:`user`).