-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: add new page 'how to read these doc' in get started section #39207
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
Conversation
9bab609
to
c631166
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I can imagine other things moving into this page (like the introductions to the sample data), but I think it's a good start. Approving, though I don't have merge rights.
|
||
|
||
|
||
The first block is a standard python input, while in the second the ``In [1]:`` indicates the input is inside a `notebook <https://jupyter.org>`__. It does not make any difference **except the last line will be printed**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rhuille - I'm not sure about this "except the last line will be printed" part. Is that really a defining feature of Jupyter Notebooks? Even in a Python repl, you would see the last line printed. Perhaps mention that, in Jupyter Notebooks, plots will be shown inline (e.g. see #39527 where someone was confused by how to work with the visualisation docs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @MarcoGorelli
Thanks for your feedback, I agree it's not defining Jupyter Notebooks, so let's rewrite it like this: 27c6bc6 what do you think ?
instead of a separate page how about a note at the top of the getting started docs. |
This page explains the code block are run in notebook closes pandas-dev#39130
27c6bc6
to
686e133
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rhuille - could you address #39207 (comment) please?
Thanks for the PR @rhuille but it appears this PR has gotten stale. Please let us know if you have time to merge master and to implement this as suggested in #39207 (comment) and we'd be happy to reopen. Closing for now. |
Hi @mroeschke, I've picked up where @rhuille left off and I've added the changes to the top of the Getting Started page. |
Thanks @ehallam this looks pretty good. One suggestion: Instead of putting this in |
Does this look good @mroeschke? I've also added a "Guides" heading to separate the "How to read these guides" section and the list of guides below. |
Looks great! Looking forward to the PR 👍 |
This page explains the code block are run in notebook
tests added / passedEnsure all linting tests pass, see here for how to run themwhatsnew entry