You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Module1_GettingStartedWithPython/GettingStartedWithPython.html
+11-11
Original file line number
Diff line number
Diff line change
@@ -430,14 +430,14 @@ <h2>What is Python?<a class="headerlink" href="#What-is-Python?" title="Permalin
430
430
<h2>Python Scripts<aclass="headerlink" href="#Python-Scripts" title="Permalink to this headline">¶</a></h2>
431
431
<p>You can save the the valid code from the preceding section in a text
432
432
file using a simple text editor, and <em>voilà</em> you have written a <strong>Python
433
-
script</strong>: a text file whose contents is Python code. It is standard to
434
-
save this text file using the suffix <codeclass="docutils literal"><spanclass="pre">.py</span></code> (e.g. <codeclass="docutils literal"><spanclass="pre">my_code.py</span></code>),
435
-
rather than the familiar <codeclass="docutils literal"><spanclass="pre">.txt</span></code> (e.g. <codeclass="docutils literal"><spanclass="pre">my_text.txt</span></code>). There is
436
-
nothing special about the <codeclass="docutils literal"><spanclass="pre">.py</span></code> suffix other than it helps to
437
-
differentiate files that contain Python code from run-of-the-mill text
438
-
files, which contain plain English.</p>
433
+
script</strong>: a text file containing Python code. It is standard to save
434
+
this text file using the suffix <codeclass="docutils literal"><spanclass="pre">.py</span></code> (e.g. <codeclass="docutils literal"><spanclass="pre">my_code.py</span></code>), rather
435
+
than the familiar <codeclass="docutils literal"><spanclass="pre">.txt</span></code> (e.g. <codeclass="docutils literal"><spanclass="pre">my_text.txt</span></code>). There is nothing
436
+
special about the <codeclass="docutils literal"><spanclass="pre">.py</span></code> suffix; it simply helps differentiate files
437
+
that contain Python code from run-of-the-mill text files, which contain
438
+
plain English.</p>
439
439
<p>Although you can use simple text editors to write Python scripts
440
-
(e.g. notepad (Win), TextEdit (Mac), vim (Linux)), there are much more
440
+
(e.g. notepad (Win), TextEdit (Mac), nano (Linux)), there are much more
441
441
sophisticated editors that provide an “integrated development
442
442
environment” (IDE) for writing code. An IDE, configured to support
443
443
Python, will warn you if you have written code that violates Python’s
@@ -486,7 +486,7 @@ <h2>What is a Python Interpreter and What Does it Mean to “Install Python”?<
486
486
<divclass="admonition warning">
487
487
<pclass="first fa fa-exclamation-circle"><strong>About Installing Python</strong>:</p>
488
488
<pclass="last">Do not download and install Python from python.org. There isn’t anything
489
-
wrong with this, however a later section will provide you with explicit
489
+
wrong with this, but a later section will provide you with explicit
490
490
instructions for installing Python on your machine.</p>
491
491
</div>
492
492
<p>If you “install Python on your computer” from
@@ -522,7 +522,7 @@ <h2>What is a Python Interpreter and What Does it Mean to “Install Python”?<
522
522
<p>It may be confusing to think that the Python language is interpreted by
523
523
using a program written in another language. How, then, is that language
524
524
interpreted? The answer, in the case of CPython, is that C code need not
525
-
be interpreted; programs exist for Windows, Macs, and Linux that can
525
+
be interpreted; programs exist for Windows, Mac, and Linux that can
526
526
translate C code directly into machine instructions.</p>
likely the <aclass="reference external" href="https://cacm.acm.org/blogs/blog-cacm/176450-python-is-now-the-most-popular-introductory-teaching-language-at-top-u-s-universities/fulltext">most popular introductory language at
532
532
universities</a>.
533
533
First and foremost, its syntax is designed to be intuitive and readable.
Copy file name to clipboardExpand all lines: docs/Module1_GettingStartedWithPython/Jupyter_Notebooks.html
+16-16
Original file line number
Diff line number
Diff line change
@@ -380,22 +380,22 @@
380
380
</style>
381
381
<divclass="section" id="Jupyter-Notebooks">
382
382
<h1>Jupyter Notebooks<aclass="headerlink" href="#Jupyter-Notebooks" title="Permalink to this headline">¶</a></h1>
383
-
<p>In recent years, the Jupyter notebook has become as a massively popular
383
+
<p>In recent years, the Jupyter Notebook has become a massively popular
384
384
tool for doing research-oriented work in Python and other languages
385
385
alike. Its emergence marked a paradigm shift in the way data science is
386
386
conducted.</p>
387
387
<p>A Jupyter notebook is similar to the IPython console, but, instead of
388
-
only being able to only work with a single line of code at a time, you
389
-
can easily and edit and re-execute <em>any</em> code that had been written in a
388
+
only being able to work with a single line of code at a time, you can
389
+
easily edit and re-execute <em>any</em> code that had been written in a
390
390
notebook. Furthermore, you can save a notebook, and thus return to it
391
391
later. Additionally, a notebook provides many terrific features. For
392
392
instance, you can embed visualizations of data within a notebook, and
393
393
write blocks of nicely-formatted text (using the <aclass="reference external" href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet">Markdown
394
394
syntax</a>),
395
395
for presenting and explaining the contents of the notebook.</p>
396
-
<p>In this way, a Jupyter notebook is stands out as an excellent tool for
397
-
many practical applications in. You could work on a notebook while you
398
-
are working through sections of this website, for instance, testing out
396
+
<p>In this way, the Jupyter Notebook stands out as an excellent tool for
397
+
many practical applications. You could work on a notebook while you are
398
+
working through sections of this website, for instance, testing out
399
399
snippets of code, and answering reading-comprehension questions as you
400
400
proceed through the text, and using markdown-headers to visually
401
401
separate different portions of the notebook. When I do research, I am
<p><strong>Command Mode (Press ``<ESC>`` to activate)</strong></p>
1362
1362
<p>When in command mode, you can use keyboard shortcuts to
1363
1363
create/delete/cut/paste notebook cells, and to change a cell’s type
1364
-
between code and markdown mode. Your selected cell will be surrounded by
1365
-
a <em>blue</em> border when you are in command mode. For a complete listing of
1366
-
keyboard shortcuts, toward the top of the notebook click
1364
+
between code and markdown modes. Your selected cell will be surrounded
1365
+
by a <em>blue</em> border when you are in command mode. For a complete listing
1366
+
of keyboard shortcuts, toward the top of the notebook click
1367
1367
<codeclass="docutils literal"><spanclass="pre">Help</span><spanclass="pre">></span><spanclass="pre">Keyboard</span><spanclass="pre">Shortcuts</span></code>. The most critical shortcuts are:</p>
1368
1368
<ulclass="simple">
1369
1369
<li>create a new cell above the current cell: <codeclass="docutils literal"><spanclass="pre">a</span></code></li>
as a reference for various markdown stylings. Using markdown cells
1403
1403
allows you to create section and subsection headers for your notebook,
1404
-
you can <aclass="reference external" href="http://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Working%20With%20Markdown%20Cells.html#LaTeX-equations">render latex math
1404
+
you can <aclass="reference external" href="http://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Working%20With%20Markdown%20Cells.html#LaTeX-equations">render LaTeX math
1405
1405
equations</a>,
1406
1406
embed images and videos in your notebook, and much more. In fact, every
1407
1407
page in this website was created using Jupyter notebooks! Markdown-type
0 commit comments