-
Notifications
You must be signed in to change notification settings - Fork 55
Documentation for Window users [#40] #47
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
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
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.
Thanks a lot, just some minor comments that should let users read your comments easier.
pandas/guide/source/pandas_setup.rst
Outdated
@@ -51,6 +51,8 @@ repository: | |||
|
|||
| ``git remote add upstream https://github.com/pandas-dev/pandas`` | |||
|
|||
(For Window Users: download git for Windows <https://gitforwindows.org/> and run Git Bash in the directory where you want the copy of pandas source code with the same commends as above.) |
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.
I think it'll be easier for user to find it (or to skip it) if instead of the comment in brackets we use in all the comments for Windows the sphinx .. note::
directive. This will create a (yellow I think) box. If at the beginning of it we have "Windows users" in bold, Linux and Mac users will skip it easily.
Then, I think in Sphins links usually are between back quotes ended with an underscore. Ignore this comment if it renders the way you want.
pandas/guide/source/pandas_setup.rst
Outdated
@@ -68,6 +70,8 @@ repository: | |||
* Install pandas development dependencies: | |||
``conda install -c defaults -c conda-forge --file=<pandas-dir>/ci/requirements-optional-conda.txt`` | |||
|
|||
(For Window users: run the above commends in Anaconda Prompt) |
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.
Personally I prefer to be more specific and not assume much prior knowledge from users, and I'd let them know where to find the Anaconda Prompt.
Also, if you find an easy way to rewrite this paragraph so this doesn't come at the end, that would be great. To avoid users following the above instructions in Windows, to realize when they reach this point that they were doing it the "wrong" way.
pandas/guide/source/pandas_setup.rst
Outdated
@@ -79,12 +83,31 @@ TODO | |||
Besides the Python `.py` files, pandas source code includes C/Cython files | |||
which need to be compiled in order to run the development version of pandas. | |||
|
|||
For Window Users: you'll need to install the compiler toolset. Depending on which version of Python you care about, you will need to choose a different download. |
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.
As users are using Anaconda, I think we can assume they'll be using the latest version of Python, and simplify this. If you want, with a note at the end with the link to Python 2.7.
pandas/guide/source/pandas_setup.rst
Outdated
To compile these files simply run: | ||
| ``cd <pandas-dir>`` | ||
| ``python setup.py build_ext --inplace`` | ||
|
||
The process will take several minutes. | ||
|
||
(For Window users: run the above commends in Anaconda Prompt) |
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.
Same as before, I'd try to tell them users to use Anaconda Prompt before the commands, not after.
Typo in commands
pandas/guide/source/pandas_setup.rst
Outdated
@@ -108,3 +131,5 @@ To check in which branch are you: | |||
|
|||
To change to another branch: | |||
| ``git checkout <branch_name>`` |
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.
Same, and if we say this here, we should probably say it at the beginning, when cloning...
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 much better. Some typos and comments on things to improve the style.
Thanks!
pandas/guide/source/pandas_setup.rst
Outdated
To compile these files simply run: | ||
| ``cd <pandas-dir>`` | ||
| ``python setup.py build_ext --inplace`` | ||
|
||
The process will take several minutes. | ||
|
||
(For Window users: run the above commends in Anaconda Prompt) |
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.
I think you forgot this one for converting to a note?
pandas/guide/source/pandas_setup.rst
Outdated
@@ -93,6 +116,9 @@ to work on. Once you know which, you need to create a git branch for your | |||
changes. This will be useful when you have finished your changes, and you want | |||
to submit a pull request, so they are included in pandas. | |||
|
|||
.. note:: | |||
for Window users run above comments with Git Bash at the colned pandas floder |
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.
Capital "F"
comments instead of commands
typo in cloned
pandas/guide/source/pandas_setup.rst
Outdated
@@ -38,6 +38,12 @@ via pip, conda or a zip. | |||
|
|||
To get the latest development version: | |||
* Fork the `pandas repository <https://github.com/pandas-dev/pandas>`_ on GitHub by click on the top-right `Fork` button | |||
|
|||
.. note:: | |||
For Window Users: download git for Windows <https://gitforwindows.org/> |
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.
I think it'd be clearer for users to have **Windows users:** in bold at the beginning of each note block. Being in bold and always in the same way, users will clearly perceive this is for windows users only.
pandas/guide/source/pandas_setup.rst
Outdated
* Download and install `Anaconda <https://www.anaconda.com/download/>` | ||
|
||
.. note:: | ||
For Window users, go to the start menu, find Anaconda Prompt inside the Anaconda floder |
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.
typo in folder
pandas/guide/source/pandas_setup.rst
Outdated
|
||
.. note:: | ||
For Window users, go to the start menu, find Anaconda Prompt inside the Anaconda floder | ||
and run the above commends in Anaconda Prompt |
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.
typo in commands
pandas/guide/source/pandas_setup.rst
Outdated
.. note:: | ||
For Window Users, you'll need to install the compiler toolset: | ||
|
||
for Python 3.6 - Install Visual Studio 2017, select the Python development workload |
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.
Capital "F"
pandas/guide/source/pandas_setup.rst
Outdated
for Python 3.6 - Install Visual Studio 2017, select the Python development workload | ||
and the Native development tools option <https://www.visualstudio.com/> | ||
|
||
for Python 2.7 - Microsoft Visual C++ Compiler for Python 2.7 |
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.
Capital "F"
Thank you! |
Adding documentations for Window users