Skip to content

Commit

Permalink
html push
Browse files Browse the repository at this point in the history
  • Loading branch information
rsokl committed Jan 5, 2020
1 parent 2a81ef9 commit e301497
Show file tree
Hide file tree
Showing 189 changed files with 652 additions and 469 deletions.
Binary file not shown.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/Module3_IntroducingNumpy/IntroducingTheNDarray.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ <h1>Introducing the ND-array<a class="headerlink" href="#Introducing-the-ND-arra
<span class="go"> [36, 49, 64]], dtype=int32)</span>
</pre></div>
</div>
<p>Let’s take the mean value over the three distinct columns in our data:</p>
<p>Let’s take the mean value along the three distinct rows of our data:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">np</span><span class="o">.</span><span class="n">mean</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
<span class="go">array([ 1., 4., 7.])</span>
</pre></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ array([[ 0, 1, 4],
[36, 49, 64]], dtype=int32)
```

Let's take the mean value over the three distinct columns in our data:
Let's take the mean value along the three distinct rows of our data:
```python
>>> np.mean(x, axis=1)
array([ 1., 4., 7.])
Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module2_EssentialsOfPython/Scope.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module4_OOP/Applications_of_OOP.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module4_OOP/Brief_Review.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module4_OOP/ClassDefinition.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module4_OOP/ClassInstances.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module4_OOP/Inheritance.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module4_OOP/Introduction_to_OOP.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module4_OOP/Methods.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module4_OOP/Special_Methods.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/Module5_OddsAndEnds/Matplotlib.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs_backup/.doctrees/changes.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs_backup/.doctrees/index.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/intro.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/module_1.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/module_2.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/module_2_problems.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/module_3.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/module_3_problems.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/module_4.doctree
Binary file not shown.
Binary file modified docs_backup/.doctrees/module_5.doctree
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../changes.html">Changelog</a></li>
</ul>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down Expand Up @@ -294,7 +295,7 @@ <h2>Why Python?<a class="headerlink" href="#Why-Python?" title="Permalink to thi

<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span>
<span class="n">std</span><span class="o">::</span><span class="n">vector</span><span class="o">&lt;</span><span class="kt">int</span><span class="o">&gt;</span> <span class="n">a</span> <span class="o">=</span> <span class="p">{</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">};</span>
<span class="n">std</span><span class="o">::</span><span class="n">cout</span> <span class="o">&lt;&lt;</span> <span class="n">std</span><span class="o">::</span><span class="n">accumulate</span><span class="p">(</span><span class="n">a</span><span class="p">.</span><span class="n">begin</span><span class="p">(),</span> <span class="n">e</span><span class="p">.</span><span class="n">end</span><span class="p">(),</span> <span class="mi">0</span><span class="p">)</span> <span class="o">&lt;&lt;</span> <span class="n">std</span><span class="o">::</span><span class="n">endl</span><span class="p">;</span>
<span class="n">std</span><span class="o">::</span><span class="n">cout</span> <span class="o">&lt;&lt;</span> <span class="n">std</span><span class="o">::</span><span class="n">accumulate</span><span class="p">(</span><span class="n">a</span><span class="p">.</span><span class="n">begin</span><span class="p">(),</span> <span class="n">a</span><span class="p">.</span><span class="n">end</span><span class="p">(),</span> <span class="mi">0</span><span class="p">)</span> <span class="o">&lt;&lt;</span> <span class="n">std</span><span class="o">::</span><span class="n">endl</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down Expand Up @@ -238,33 +239,33 @@ <h3>Recommended IDEs<a class="headerlink" href="#Recommended-IDEs" title="Permal
<li>works well out-of-the-box</li>
<li>long-supported by professionals and thus is very reliable</li>
<li>highly configurable</li>
<li>fully-featured</li>
<li>fully-featured, with an excellent debugger, context-dependent “intellisense”, type-inference, and more</li>
<li>the free “community version” is extremely robust and feature-rich.</li>
</ul>
<p><strong>Cons</strong></p>
<ul class="simple">
<li>can be resource-heavy, especially for a laptop</li>
<li>may be overwhelming to new users (but has good documentation and tutorials)</li>
<li>Jupyter notebook support requires the premium version of PyCharm, making it inaccessible to newcomers</li>
</ul>
<p><a class="reference external" href="https://code.visualstudio.com/">Visual Studio Code</a> with the <a class="reference external" href="https://code.visualstudio.com/docs/languages/python">Python extension</a>: A lightweight, highly customizable IDE.</p>
<p><strong>Pros</strong></p>
<ul class="simple">
<li>lightweight and elegant</li>
<li>works with many different languages, so you only need to familiarize yourself with one IDE</li>
<li>completely free</li>
<li>works with many different languages, so you only need to familiarize yourself with one IDE if you are a polyglot programmer</li>
<li>a huge number of extensions can be downloaded to add functionality to the editor; these are created by a large community of open-source developers.</li>
<li><a class="reference external" href="https://code.visualstudio.com/docs/python/jupyter-support">has native support for Jupyter notebooks</a>, meaning that you get VSCode’s intellisense, debugger, and ability to inspect variables, all in a notebook.</li>
</ul>
<p><strong>Cons</strong></p>
<ul class="simple">
<li>currently less polished and less powerful than PyCharm, although Microsoft is now formally supporting the Python extension</li>
<li>can require some tinkering to get features working</li>
<li>configuring VSCode for python development can have a moderate learning curve for newcomers</li>
<li>many features, like context-aware intellisense and type-inference, are simply more polished and powerful in PyCharm</li>
</ul>
<div class="admonition note">
<p class="admonition-title fa fa-exclamation-circle"><strong>Takeaway</strong>:</p>
<p>Integrated Development Environments (IDEs) provide powerful tools for helping you write well-formatted and typo-free code. We recommend using PyCharm Community Edition or Visual Studio Code (with the Python extension installed) for your Python IDE.</p>
</div>
<div class="admonition warning">
<p class="admonition-title fa fa-exclamation-circle"><strong>Jupyter Lab</strong>:</p>
<p><a class="reference external" href="https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html">Jupyter Lab</a> is a new IDE that is being developed by the same team that develops the Jupyter Notebook. It aims to mix the polish and power of a traditional IDE, along with the convenience and great utility of the notebook environment. As of writing this, Jupyter Lab is still in the beta release phase. Given the massive popularity of Jupyter Notebook, Jupyter Lab will likely become a widely used IDE, quickly.</p>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta charset="utf-8">
<meta content="Topic: Jupyter notebooks, Difficulty: Easy, Category: Tutorial" name="description" />
<meta content="jupyter, notebook, kernel, basics, server, console, command line, plot, beginner, data science" name="keywords" />
<meta content="jupyter, jupyter lab, notebook, kernel, basics, server, console, plot, beginner, data science" name="keywords" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Expand Down Expand Up @@ -100,12 +100,14 @@
<li class="toctree-l2"><a class="reference internal" href="Installing_Python.html">Installing Python</a></li>
<li class="toctree-l2"><a class="reference internal" href="Informal_Intro_Python.html">An Informal Introduction to Python</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Jupyter Notebooks</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#Jupyter-Lab">Jupyter Lab</a></li>
<li class="toctree-l3"><a class="reference internal" href="#Running-a-Notebook-Server-&amp;-Creating-a-Notebook">Running a Notebook Server &amp; Creating a Notebook</a></li>
<li class="toctree-l3"><a class="reference internal" href="#Notebook-Cells">Notebook Cells</a></li>
<li class="toctree-l3"><a class="reference internal" href="#An-Example-Notebook">An Example Notebook</a></li>
<li class="toctree-l3"><a class="reference internal" href="#Familiarizing-Yourself-with-Jupyter-Notebooks">Familiarizing Yourself with Jupyter Notebooks</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#Markdown-Cells">Markdown Cells</a></li>
<li class="toctree-l4"><a class="reference internal" href="#Using-Jupyter-Notebooks-with-Other-Languages">Using Jupyter Notebooks with Other Languages</a></li>
<li class="toctree-l4"><a class="reference internal" href="#Jupyter-Notebook-Support-in-Visual-Studio-Code">Jupyter Notebook Support in Visual Studio Code</a></li>
</ul>
</li>
</ul>
Expand All @@ -119,6 +121,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down Expand Up @@ -414,11 +417,19 @@ <h1>Jupyter Notebooks<a class="headerlink" href="#Jupyter-Notebooks" title="Perm
syntax</a>), for presenting and explaining the contents of the notebook.</p>
<p>In this way, the Jupyter Notebook stands out as an excellent tool for many practical applications. You could work on a notebook while you are working through sections of this website, for instance, testing out snippets of code, and answering reading-comprehension questions as you proceed through the text, and using markdown-headers to visually separate different portions of the notebook. When I do research, I am always creating Jupyter notebooks in which I write code that analyzes data, I plot
various results, presented in different ways, and I write detailed markdown-text blocks to document my work. The end result is something that I can share with my labmates, and easily revisit months later without having to struggle to recall what I had done.</p>
<p>Enough gushing about Jupyter notebooks. Let’s start using them!</p>
<div class="section" id="Jupyter-Lab">
<h2>Jupyter Lab<a class="headerlink" href="#Jupyter-Lab" title="Permalink to this headline"></a></h2>
<p><a class="reference external" href="https://jupyterlab.readthedocs.io/">Jupyter lab</a> is a new web interface from Project Jupyter that provides a rich web-based interface for managing and running Jupyter notebooks, console terminals, and text editors, all within your browser. Among its useful features and polished user interface - compared to that a Jupyter notebook server - Jupyter lab provides moveable panes for viewing data, images, and code output apart from the rest of the notebook. This is facilitates effective data
science work flows.</p>
<p>It is recommended that you peruse the <a class="reference external" href="https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html">Jupyter lab documentation</a> to get a feel for all of its added capabilities.</p>
<p>The following instructions are laid out for running a Jupyter notebook server. That being said, the process for running a Jupyter lab server and working with notebooks therein is nearly identical. Both Jupyter notebook and Jupyter lab should already be <a class="reference external" href="https://www.pythonlikeyoumeanit.com/Module1_GettingStartedWithPython/Installing_Python.html">installed via Anaconda</a>.</p>
</div>
<div class="section" id="Running-a-Notebook-Server-&amp;-Creating-a-Notebook">
<h2>Running a Notebook Server &amp; Creating a Notebook<a class="headerlink" href="#Running-a-Notebook-Server-&-Creating-a-Notebook" title="Permalink to this headline"></a></h2>
<p>Enough gushing about Jupyter notebooks. Let’s start using them!</p>
<p>In your terminal, navigate to a directory (a.k.a folder) that you are okay creating files in. If you don’t know how to do this, Google it!</p>
<p>Once you are in the desired directory, execute in your terminal (type the following, and then hit <code class="docutils literal notranslate"><span class="pre">&lt;ENTER&gt;</span></code>): <code class="docutils literal notranslate"><span class="pre">jupyter</span> <span class="pre">notebook</span></code></p>
<p>Alternatively, if you want to work in Jupyter lab, run: <code class="docutils literal notranslate"><span class="pre">jupyter</span> <span class="pre">lab</span></code></p>
<p>You should see some text appear in your terminal:</p>
<p><img alt="Starting a jupyter notebook server on your machine" src="../_images/jupyter_login.PNG" /></p>
<p>This is a “notebook server” that is running on your machine - it basically handles all of the communication between your browser and your machine. A new window or tab should open in your web browser, which looks like a file explorer.</p>
Expand Down Expand Up @@ -514,7 +525,7 @@ <h2>An Example Notebook<a class="headerlink" href="#An-Example-Notebook" title="
<div class="prompt empty docutils container">
</div>
<div class="output_area docutils container">
<img alt="../_images/Module1_GettingStartedWithPython_Jupyter_Notebooks_9_0.png" src="../_images/Module1_GettingStartedWithPython_Jupyter_Notebooks_9_0.png" />
<img alt="../_images/Module1_GettingStartedWithPython_Jupyter_Notebooks_10_0.png" src="../_images/Module1_GettingStartedWithPython_Jupyter_Notebooks_10_0.png" />
</div>
</div>
<p>Notice that this notebook interface is great for making adjustments to this plot. You can easily change the color or line-style of the plot and redraw it without having to recompute the functions. You simply re-execute the cell containing the plot code. This is especially nice when the numerical computations required to generate the curves are costly.</p>
Expand Down Expand Up @@ -562,6 +573,10 @@ <h3>Using Jupyter Notebooks with Other Languages<a class="headerlink" href="#Usi
</ul>
<p>The ever-growing list of available kernels for use with Jupyter can be found <a class="reference external" href="https://github.com/jupyter/jupyter/wiki/Jupyter-kernels">here</a>. It should be noted that these efforts are not all equally mature. For instance, whereas the Python and Julia kernels are robust, the Haskell kernel cannot run natively on Windows machines, and the C++ kernel is still in early development, as of writing this.</p>
</div>
<div class="section" id="Jupyter-Notebook-Support-in-Visual-Studio-Code">
<h3>Jupyter Notebook Support in Visual Studio Code<a class="headerlink" href="#Jupyter-Notebook-Support-in-Visual-Studio-Code" title="Permalink to this headline"></a></h3>
<p>Native Jupyter notebook support was <a class="reference external" href="https://devblogs.microsoft.com/python/announcing-support-for-native-editing-of-jupyter-notebooks-in-vs-code/">recently added to Visual Studio Code</a>. This means that you can now edit Jupyter notebooks within the <a class="reference external" href="https://www.pythonlikeyoumeanit.com/Module1_GettingStartedWithPython/Getting_Started_With_IDEs_and_Notebooks.html">Visual Studio Code IDE</a>, and that you will benefit from added features like code-completion, debugging, and variable inspection.</p>
</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down
1 change: 1 addition & 0 deletions docs_backup/Module2_EssentialsOfPython/Basic_Objects.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down
1 change: 1 addition & 0 deletions docs_backup/Module2_EssentialsOfPython/DataStructures.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>


Expand Down
Loading

0 comments on commit e301497

Please sign in to comment.