Skip to content

Commit 4890b3b

Browse files
committed
publish-to-github from 8ac2594
1 parent e1207ca commit 4890b3b

File tree

71 files changed

+420
-2486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+420
-2486
lines changed

pages/00.00-preface.html renamed to 00.00-preface.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>Preface</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
| <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.00-ipython-beyond-normal-python.html">IPython: Beyond Normal Python</a> &gt;</p>
1425+
| <a href="index.html">Contents</a> | <a href="01.00-ipython-beyond-normal-python.html">IPython: Beyond Normal Python</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1573,7 +1573,7 @@ <h2 id="Installation-Considerations">Installation Considerations<a class="anchor
15731573
<div class="inner_cell">
15741574
<div class="text_cell_render border-box-sizing rendered_html">
15751575
<p><!--NAVIGATION-->
1576-
| <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.00-ipython-beyond-normal-python.html">IPython: Beyond Normal Python</a> &gt;</p>
1576+
| <a href="index.html">Contents</a> | <a href="01.00-ipython-beyond-normal-python.html">IPython: Beyond Normal Python</a> &gt;</p>
15771577

15781578
</div>
15791579
</div>

pages/01.00-ipython-beyond-normal-python.html renamed to 01.00-ipython-beyond-normal-python.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>IPython: Beyond Normal Python</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
&lt; <a href="/PythonDataScienceHandbook/pages/00.00-preface.html">Preface</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.01-help-and-documentation.html">Help and Documentation in IPython</a> &gt;</p>
1425+
&lt; <a href="00.00-preface.html">Preface</a> | <a href="index.html">Contents</a> | <a href="01.01-help-and-documentation.html">Help and Documentation in IPython</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1468,7 +1468,7 @@ <h2 id="Shell-or-Notebook?">Shell or Notebook?<a class="anchor-link" href="#Shel
14681468
<div class="text_cell_render border-box-sizing rendered_html">
14691469
<h3 id="Launching-the-IPython-Shell">Launching the IPython Shell<a class="anchor-link" href="#Launching-the-IPython-Shell">&#182;</a></h3><p>This chapter, like most of this book, is not designed to be absorbed passively.
14701470
I recommend that as you read through it, you follow along and experiment with the tools and syntax we cover: the muscle-memory you build through doing this will be far more useful than the simple act of reading about it.
1471-
Start by launching the IPython interpreter by typing <strong><code>ipython</code></strong> on the command-line; alternatively, if you've installed a distribution like Anaconda or EPD, there may be a launcher specific to your system (we'll discuss this more fully in <a href="/PythonDataScienceHandbook/pages/01.01-help-and-documentation.html">Help and Documentation in IPython</a>).</p>
1471+
Start by launching the IPython interpreter by typing <strong><code>ipython</code></strong> on the command-line; alternatively, if you've installed a distribution like Anaconda or EPD, there may be a launcher specific to your system (we'll discuss this more fully in <a href="01.01-help-and-documentation.html">Help and Documentation in IPython</a>).</p>
14721472
<p>Once you do this, you should see a prompt like the following:</p>
14731473

14741474
<pre><code>IPython 4.0.1 -- An enhanced Interactive Python.
@@ -1515,7 +1515,7 @@ <h3 id="Launching-the-Jupyter-Notebook">Launching the Jupyter Notebook<a class="
15151515
<div class="inner_cell">
15161516
<div class="text_cell_render border-box-sizing rendered_html">
15171517
<p><!--NAVIGATION-->
1518-
&lt; <a href="/PythonDataScienceHandbook/pages/00.00-preface.html">Preface</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.01-help-and-documentation.html">Help and Documentation in IPython</a> &gt;</p>
1518+
&lt; <a href="00.00-preface.html">Preface</a> | <a href="index.html">Contents</a> | <a href="01.01-help-and-documentation.html">Help and Documentation in IPython</a> &gt;</p>
15191519

15201520
</div>
15211521
</div>

pages/01.01-help-and-documentation.html renamed to 01.01-help-and-documentation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>Help and Documentation in IPython</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
&lt; <a href="/PythonDataScienceHandbook/pages/01.00-ipython-beyond-normal-python.html">IPython: Beyond Normal Python</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.02-shell-keyboard-shortcuts.html">Keyboard Shortcuts in the IPython Shell</a> &gt;</p>
1425+
&lt; <a href="01.00-ipython-beyond-normal-python.html">IPython: Beyond Normal Python</a> | <a href="index.html">Contents</a> | <a href="01.02-shell-keyboard-shortcuts.html">Keyboard Shortcuts in the IPython Shell</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1715,7 +1715,7 @@ <h3 id="Beyond-tab-completion:-wildcard-matching">Beyond tab completion: wildcar
17151715
<div class="inner_cell">
17161716
<div class="text_cell_render border-box-sizing rendered_html">
17171717
<p><!--NAVIGATION-->
1718-
&lt; <a href="/PythonDataScienceHandbook/pages/01.00-ipython-beyond-normal-python.html">IPython: Beyond Normal Python</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.02-shell-keyboard-shortcuts.html">Keyboard Shortcuts in the IPython Shell</a> &gt;</p>
1718+
&lt; <a href="01.00-ipython-beyond-normal-python.html">IPython: Beyond Normal Python</a> | <a href="index.html">Contents</a> | <a href="01.02-shell-keyboard-shortcuts.html">Keyboard Shortcuts in the IPython Shell</a> &gt;</p>
17191719

17201720
</div>
17211721
</div>

pages/01.02-shell-keyboard-shortcuts.html renamed to 01.02-shell-keyboard-shortcuts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>Keyboard Shortcuts in the IPython Shell</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
&lt; <a href="/PythonDataScienceHandbook/pages/01.01-help-and-documentation.html">Help and Documentation in IPython</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.03-magic-commands.html">IPython Magic Commands</a> &gt;</p>
1425+
&lt; <a href="01.01-help-and-documentation.html">Help and Documentation in IPython</a> | <a href="index.html">Contents</a> | <a href="01.03-magic-commands.html">IPython Magic Commands</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1649,7 +1649,7 @@ <h2 id="Miscellaneous-Shortcuts">Miscellaneous Shortcuts<a class="anchor-link" h
16491649
<div class="inner_cell">
16501650
<div class="text_cell_render border-box-sizing rendered_html">
16511651
<p><!--NAVIGATION-->
1652-
&lt; <a href="/PythonDataScienceHandbook/pages/01.01-help-and-documentation.html">Help and Documentation in IPython</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.03-magic-commands.html">IPython Magic Commands</a> &gt;</p>
1652+
&lt; <a href="01.01-help-and-documentation.html">Help and Documentation in IPython</a> | <a href="index.html">Contents</a> | <a href="01.03-magic-commands.html">IPython Magic Commands</a> &gt;</p>
16531653

16541654
</div>
16551655
</div>

pages/01.03-magic-commands.html renamed to 01.03-magic-commands.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>IPython Magic Commands</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
&lt; <a href="/PythonDataScienceHandbook/pages/01.02-shell-keyboard-shortcuts.html">Keyboard Shortcuts in the IPython Shell</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.04-input-output-history.html">Input and Output History</a> &gt;</p>
1425+
&lt; <a href="01.02-shell-keyboard-shortcuts.html">Keyboard Shortcuts in the IPython Shell</a> | <a href="index.html">Contents</a> | <a href="01.04-input-output-history.html">Input and Output History</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1549,7 +1549,7 @@ <h2 id="Timing-Code-Execution:-%timeit">Timing Code Execution: <code>%timeit</co
15491549
...:
15501550
1000 loops, best of 3: 373 µs per loop</code></pre>
15511551
<p>We can immediately see that list comprehensions are about 10% faster than the equivalent <code>for</code>-loop construction in this case.
1552-
We'll explore <code>%timeit</code> and other approaches to timing and profiling code in <a href="/PythonDataScienceHandbook/pages/01.07-timing-and-profiling.html">Profiling and Timing Code</a>.</p>
1552+
We'll explore <code>%timeit</code> and other approaches to timing and profiling code in <a href="01.07-timing-and-profiling.html">Profiling and Timing Code</a>.</p>
15531553

15541554
</div>
15551555
</div>
@@ -1575,7 +1575,7 @@ <h2 id="Help-on-Magic-Functions:-?,-%magic,-and-%lsmagic">Help on Magic Function
15751575
<pre><code>ipython
15761576
In [12]: %lsmagic</code></pre>
15771577
<p>Finally, I'll mention that it is quite straightforward to define your own magic functions if you wish.
1578-
We won't discuss it here, but if you are interested, see the references listed in <a href="/PythonDataScienceHandbook/pages/01.08-more-ipython-resources.html">More IPython Resources</a>.</p>
1578+
We won't discuss it here, but if you are interested, see the references listed in <a href="01.08-more-ipython-resources.html">More IPython Resources</a>.</p>
15791579

15801580
</div>
15811581
</div>
@@ -1586,7 +1586,7 @@ <h2 id="Help-on-Magic-Functions:-?,-%magic,-and-%lsmagic">Help on Magic Function
15861586
<div class="inner_cell">
15871587
<div class="text_cell_render border-box-sizing rendered_html">
15881588
<p><!--NAVIGATION-->
1589-
&lt; <a href="/PythonDataScienceHandbook/pages/01.02-shell-keyboard-shortcuts.html">Keyboard Shortcuts in the IPython Shell</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.04-input-output-history.html">Input and Output History</a> &gt;</p>
1589+
&lt; <a href="01.02-shell-keyboard-shortcuts.html">Keyboard Shortcuts in the IPython Shell</a> | <a href="index.html">Contents</a> | <a href="01.04-input-output-history.html">Input and Output History</a> &gt;</p>
15901590

15911591
</div>
15921592
</div>

pages/01.04-input-output-history.html renamed to 01.04-input-output-history.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>Input and Output History</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
&lt; <a href="/PythonDataScienceHandbook/pages/01.03-magic-commands.html">IPython Magic Commands</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.05-ipython-and-shell-commands.html">IPython and Shell Commands</a> &gt;</p>
1425+
&lt; <a href="01.03-magic-commands.html">IPython Magic Commands</a> | <a href="index.html">Contents</a> | <a href="01.05-ipython-and-shell-commands.html">IPython and Shell Commands</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1543,7 +1543,7 @@ <h2 id="Underscore-Shortcuts-and-Previous-Outputs">Underscore Shortcuts and Prev
15431543
</div>
15441544
<div class="inner_cell">
15451545
<div class="text_cell_render border-box-sizing rendered_html">
1546-
<h2 id="Suppressing-Output">Suppressing Output<a class="anchor-link" href="#Suppressing-Output">&#182;</a></h2><p>Sometimes you might wish to suppress the output of a statement (this is perhaps most common with the plotting commands that we'll explore in <a href="/PythonDataScienceHandbook/pages/04.00-introduction-to-matplotlib.html">Introduction to Matplotlib</a>).
1546+
<h2 id="Suppressing-Output">Suppressing Output<a class="anchor-link" href="#Suppressing-Output">&#182;</a></h2><p>Sometimes you might wish to suppress the output of a statement (this is perhaps most common with the plotting commands that we'll explore in <a href="04.00-introduction-to-matplotlib.html">Introduction to Matplotlib</a>).
15471547
Or maybe the command you're executing produces a result that you'd prefer not like to store in your output history, perhaps so that it can be deallocated when other references are removed.
15481548
The easiest way to suppress the output of a command is to add a semicolon to the end of the line:</p>
15491549

@@ -1574,7 +1574,7 @@ <h2 id="Related-Magic-Commands">Related Magic Commands<a class="anchor-link" hre
15741574
4: print(In)</code></pre>
15751575
<p>As usual, you can type <code>%history?</code> for more information and a description of options available.
15761576
Other similar magic commands are <code>%rerun</code> (which will re-execute some portion of the command history) and <code>%save</code> (which saves some set of the command history to a file).
1577-
For more information, I suggest exploring these using the <code>?</code> help functionality discussed in <a href="/PythonDataScienceHandbook/pages/01.01-help-and-documentation.html">Help and Documentation in IPython</a>.</p>
1577+
For more information, I suggest exploring these using the <code>?</code> help functionality discussed in <a href="01.01-help-and-documentation.html">Help and Documentation in IPython</a>.</p>
15781578

15791579
</div>
15801580
</div>
@@ -1585,7 +1585,7 @@ <h2 id="Related-Magic-Commands">Related Magic Commands<a class="anchor-link" hre
15851585
<div class="inner_cell">
15861586
<div class="text_cell_render border-box-sizing rendered_html">
15871587
<p><!--NAVIGATION-->
1588-
&lt; <a href="/PythonDataScienceHandbook/pages/01.03-magic-commands.html">IPython Magic Commands</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.05-ipython-and-shell-commands.html">IPython and Shell Commands</a> &gt;</p>
1588+
&lt; <a href="01.03-magic-commands.html">IPython Magic Commands</a> | <a href="index.html">Contents</a> | <a href="01.05-ipython-and-shell-commands.html">IPython and Shell Commands</a> &gt;</p>
15891589

15901590
</div>
15911591
</div>

pages/01.05-ipython-and-shell-commands.html renamed to 01.05-ipython-and-shell-commands.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>IPython and Shell Commands</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
&lt; <a href="/PythonDataScienceHandbook/pages/01.04-input-output-history.html">Input and Output History</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.06-errors-and-debugging.html">Errors and Debugging</a> &gt;</p>
1425+
&lt; <a href="01.04-input-output-history.html">Input and Output History</a> | <a href="index.html">Contents</a> | <a href="01.06-errors-and-debugging.html">Errors and Debugging</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1611,7 +1611,7 @@ <h1 id="Shell-Related-Magic-Commands">Shell-Related Magic Commands<a class="anch
16111611
<div class="inner_cell">
16121612
<div class="text_cell_render border-box-sizing rendered_html">
16131613
<p><!--NAVIGATION-->
1614-
&lt; <a href="/PythonDataScienceHandbook/pages/01.04-input-output-history.html">Input and Output History</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.06-errors-and-debugging.html">Errors and Debugging</a> &gt;</p>
1614+
&lt; <a href="01.04-input-output-history.html">Input and Output History</a> | <a href="index.html">Contents</a> | <a href="01.06-errors-and-debugging.html">Errors and Debugging</a> &gt;</p>
16151615

16161616
</div>
16171617
</div>

pages/01.06-errors-and-debugging.html renamed to 01.06-errors-and-debugging.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>Errors and Debugging</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
&lt; <a href="/PythonDataScienceHandbook/pages/01.05-ipython-and-shell-commands.html">IPython and Shell Commands</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.07-timing-and-profiling.html">Profiling and Timing Code</a> &gt;</p>
1425+
&lt; <a href="01.05-ipython-and-shell-commands.html">IPython and Shell Commands</a> | <a href="index.html">Contents</a> | <a href="01.07-timing-and-profiling.html">Profiling and Timing Code</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1975,7 +1975,7 @@ <h3 id="Partial-list-of-debugging-commands">Partial list of debugging commands<a
19751975
<div class="inner_cell">
19761976
<div class="text_cell_render border-box-sizing rendered_html">
19771977
<p><!--NAVIGATION-->
1978-
&lt; <a href="/PythonDataScienceHandbook/pages/01.05-ipython-and-shell-commands.html">IPython and Shell Commands</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.07-timing-and-profiling.html">Profiling and Timing Code</a> &gt;</p>
1978+
&lt; <a href="01.05-ipython-and-shell-commands.html">IPython and Shell Commands</a> | <a href="index.html">Contents</a> | <a href="01.07-timing-and-profiling.html">Profiling and Timing Code</a> &gt;</p>
19791979

19801980
</div>
19811981
</div>

pages/01.07-timing-and-profiling.html renamed to 01.07-timing-and-profiling.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ <h1>Profiling and Timing Code</h1>
14221422
<div class="inner_cell">
14231423
<div class="text_cell_render border-box-sizing rendered_html">
14241424
<p><!--NAVIGATION-->
1425-
&lt; <a href="/PythonDataScienceHandbook/pages/01.06-errors-and-debugging.html">Errors and Debugging</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.08-more-ipython-resources.html">More IPython Resources</a> &gt;</p>
1425+
&lt; <a href="01.06-errors-and-debugging.html">Errors and Debugging</a> | <a href="index.html">Contents</a> | <a href="01.08-more-ipython-resources.html">More IPython Resources</a> &gt;</p>
14261426

14271427
</div>
14281428
</div>
@@ -1456,7 +1456,7 @@ <h1>Profiling and Timing Code</h1>
14561456
</div>
14571457
<div class="inner_cell">
14581458
<div class="text_cell_render border-box-sizing rendered_html">
1459-
<h2 id="Timing-Code-Snippets:-%timeit-and-%time">Timing Code Snippets: <code>%timeit</code> and <code>%time</code><a class="anchor-link" href="#Timing-Code-Snippets:-%timeit-and-%time">&#182;</a></h2><p>We saw the <code>%timeit</code> line-magic and <code>%%timeit</code> cell-magic in the introduction to magic functions in <a href="/PythonDataScienceHandbook/pages/01.03-magic-commands.html">IPython Magic Commands</a>; it can be used to time the repeated execution of snippets of code:</p>
1459+
<h2 id="Timing-Code-Snippets:-%timeit-and-%time">Timing Code Snippets: <code>%timeit</code> and <code>%time</code><a class="anchor-link" href="#Timing-Code-Snippets:-%timeit-and-%time">&#182;</a></h2><p>We saw the <code>%timeit</code> line-magic and <code>%%timeit</code> cell-magic in the introduction to magic functions in <a href="01.03-magic-commands.html">IPython Magic Commands</a>; it can be used to time the repeated execution of snippets of code:</p>
14601460

14611461
</div>
14621462
</div>
@@ -2077,7 +2077,7 @@ <h2 id="Profiling-Memory-Use:-%memit-and-%mprun">Profiling Memory Use: <code>%me
20772077
<div class="inner_cell">
20782078
<div class="text_cell_render border-box-sizing rendered_html">
20792079
<p><!--NAVIGATION-->
2080-
&lt; <a href="/PythonDataScienceHandbook/pages/01.06-errors-and-debugging.html">Errors and Debugging</a> | <a href="/PythonDataScienceHandbook/pages/index.html">Contents</a> | <a href="/PythonDataScienceHandbook/pages/01.08-more-ipython-resources.html">More IPython Resources</a> &gt;</p>
2080+
&lt; <a href="01.06-errors-and-debugging.html">Errors and Debugging</a> | <a href="index.html">Contents</a> | <a href="01.08-more-ipython-resources.html">More IPython Resources</a> &gt;</p>
20812081

20822082
</div>
20832083
</div>

0 commit comments

Comments
 (0)