Skip to content

Improve environment setup docs #17

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 2 commits into from
Feb 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pandas/guide/_sources/pandas_setup.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@ repository:

* Download and install `Anaconda <https://www.anaconda.com/download/>`_
* Activate conda by one of the next (or equivalent, if you know what you're doing):
| Restart your terminal
| ``. ~/.bashrc``
| ``export PATH="<path-to-anaconda>/bin:$PATH"``
* If you chose to prepend Anaconda to your PATH during install adding it to your ``~/.bashrc``, just restart your terminal.
* Otherwise, run ``export PATH="<path-to-anaconda>/bin:$PATH"`` in your terminal. Keep in mind that it will be active exclusively in the terminal you run this command.
* Create a conda environment:
``conda create -n pandas_dev -f <path-to-pandas>/ci/environment-dev.yaml``
``conda env create -n pandas_dev -f <path-to-pandas>/ci/environment-dev.yaml``
* Activate the new conda environment:
``source activate pandas_dev``
* Install pandas development dependencies:
Expand Down
23 changes: 9 additions & 14 deletions pandas/guide/pandas_setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,35 +85,30 @@ <h3>2. Get the pandas source code<a class="headerlink" href="#get-the-pandas-sou
<h3>3. Set up a Python environment<a class="headerlink" href="#set-up-a-python-environment" title="Permalink to this headline">¶</a></h3>
<div class="section" id="a-python-environment-with-anaconda">
<h4>3.a Python environment with Anaconda<a class="headerlink" href="#a-python-environment-with-anaconda" title="Permalink to this headline">¶</a></h4>
<ul>
<li><p class="first">Download and install <a class="reference external" href="https://www.anaconda.com/download/">Anaconda</a></p>
</li>
<ul class="simple">
<li>Download and install <a class="reference external" href="https://www.anaconda.com/download/">Anaconda</a></li>
<li><dl class="first docutils">
<dt>Activate conda by one of the next (or equivalent, if you know what you’re doing):</dt>
<dd><div class="first last line-block">
<div class="line">Restart your terminal</div>
<div class="line"><code class="docutils literal notranslate"><span class="pre">.</span> <span class="pre">~/.bashrc</span></code></div>
<div class="line"><code class="docutils literal notranslate"><span class="pre">export</span> <span class="pre">PATH=&quot;&lt;path-to-anaconda&gt;/bin:$PATH&quot;</span></code></div>
</div>
<dd><ul class="first last">
<li>If you chose to prepend Anaconda to your PATH during install adding it to your <code class="docutils literal notranslate"><span class="pre">~/.bashrc</span></code>, just restart your terminal.</li>
<li>Otherwise, run <code class="docutils literal notranslate"><span class="pre">export</span> <span class="pre">PATH=&quot;&lt;path-to-anaconda&gt;/bin:$PATH&quot;</span></code> in your terminal. Keep in mind that it will be active exclusively in the terminal you run this command.</li>
</ul>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt>Create a conda environment:</dt>
<dd><p class="first last"><code class="docutils literal notranslate"><span class="pre">conda</span> <span class="pre">create</span> <span class="pre">-n</span> <span class="pre">pandas_dev</span> <span class="pre">-f</span> <span class="pre">&lt;path-to-pandas&gt;/ci/environment-dev.yaml</span></code></p>
</dd>
<dd><code class="docutils literal notranslate"><span class="pre">conda</span> <span class="pre">env</span> <span class="pre">create</span> <span class="pre">-n</span> <span class="pre">pandas_dev</span> <span class="pre">-f</span> <span class="pre">&lt;path-to-pandas&gt;/ci/environment-dev.yaml</span></code></dd>
</dl>
</li>
<li><dl class="first docutils">
<dt>Activate the new conda environment:</dt>
<dd><p class="first last"><code class="docutils literal notranslate"><span class="pre">source</span> <span class="pre">activate</span> <span class="pre">pandas_dev</span></code></p>
</dd>
<dd><code class="docutils literal notranslate"><span class="pre">source</span> <span class="pre">activate</span> <span class="pre">pandas_dev</span></code></dd>
</dl>
</li>
<li><dl class="first docutils">
<dt>Install pandas development dependencies:</dt>
<dd><p class="first last"><code class="docutils literal notranslate"><span class="pre">conda</span> <span class="pre">install</span> <span class="pre">-c</span> <span class="pre">defaults</span> <span class="pre">-c</span> <span class="pre">conda-forge</span> <span class="pre">--file=&lt;pandas-dir&gt;/ci/requirements-optional-conda.txt</span></code></p>
</dd>
<dd><code class="docutils literal notranslate"><span class="pre">conda</span> <span class="pre">install</span> <span class="pre">-c</span> <span class="pre">defaults</span> <span class="pre">-c</span> <span class="pre">conda-forge</span> <span class="pre">--file=&lt;pandas-dir&gt;/ci/requirements-optional-conda.txt</span></code></dd>
</dl>
</li>
</ul>
Expand Down
Loading