cggh / scikit-allel

A Python package for exploring and analysing genetic variation data
MIT License
287 stars 49 forks source link

hide Python prompts from docs #321

Open mufernando opened 4 years ago

mufernando commented 4 years ago

It is quite annoying to deal with the prompt (>>>) in the docs when copying and pasting.

I'm proposing we add a button that hides the prompt so code can be copied as in here.

This doesn't seem that hard to do as per this discussion here.

I'd be happy to put a PR together to change this if people are interested.

alimanfoo commented 4 years ago

Sounds good to me, PR very welcome.

On Wed, 10 Jun 2020, 18:22 Murillo Fernando Rodrigues, < notifications@github.com> wrote:

It is quite annoying to deal with the prompt (>>>) in the docs when copying and pasting.

I'm proposing we add a button that hides the prompt so code can be copied as in here https://numpy.org/doc/stable/user/misc.html#examples.

This doesn't seem that hard to do as per this discussion here https://github.com/readthedocs/sphinx_rtd_theme/issues/167.

I'd be happy to put a PR together to change this if people are interested.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cggh/scikit-allel/issues/321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFLYQWQ2OQVZAQEWAT5YXLRV66NHANCNFSM4N2SZTKQ .