Skip to content

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

Merged
merged 6 commits into from
Mar 6, 2018

Conversation

Cheukting
Copy link
Member

Adding documentations for Window users

Cheukting and others added 4 commits February 8, 2018 19:41
# 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.
Copy link
Member

@datapythonista datapythonista left a 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.

@@ -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.)
Copy link
Member

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.

@@ -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)
Copy link
Member

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.

@@ -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.
Copy link
Member

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.

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)
Copy link
Member

@datapythonista datapythonista Mar 4, 2018

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

@@ -108,3 +131,5 @@ To check in which branch are you:

To change to another branch:
| ``git checkout <branch_name>``
Copy link
Member

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...

Copy link
Member

@datapythonista datapythonista left a 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!

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)
Copy link
Member

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?

@@ -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
Copy link
Member

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

@@ -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/>
Copy link
Member

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.

* 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in folder


.. note::
For Window users, go to the start menu, find Anaconda Prompt inside the Anaconda floder
and run the above commends in Anaconda Prompt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in commands

.. 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capital "F"

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capital "F"

@datapythonista datapythonista merged commit 57c9988 into python-sprints:master Mar 6, 2018
@datapythonista
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants