Skip to content

Commit

Permalink
deploy: 2e9b463
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Jul 7, 2024
1 parent 3412c25 commit 3d50326
Show file tree
Hide file tree
Showing 75 changed files with 571 additions and 515 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
40 changes: 20 additions & 20 deletions blog/basic-python.html
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ <h2>Lambda Lambda Lambda<a class="headerlink" href="#lambda-lambda-lambda" title
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7feda8eee480&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7f89a03ae480&gt;
4
</pre></div>
</div>
Expand All @@ -1112,7 +1112,7 @@ <h2>Lambda Lambda Lambda<a class="headerlink" href="#lambda-lambda-lambda" title
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7feda8e82160&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7f89a03ae020&gt;
5
</pre></div>
</div>
Expand All @@ -1129,7 +1129,7 @@ <h2>Lambda Lambda Lambda<a class="headerlink" href="#lambda-lambda-lambda" title
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7feda8eedf80&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7f89a03adf80&gt;
5
5
</pre></div>
Expand All @@ -1150,7 +1150,7 @@ <h2>Lambda Lambda Lambda<a class="headerlink" href="#lambda-lambda-lambda" title
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7feda8eedd00&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7f89a03ae2a0&gt;
1
3
6
Expand Down Expand Up @@ -1326,7 +1326,7 @@ <h2>Creating arrays in python<a class="headerlink" href="#creating-arrays-in-pyt
[4 5 6]]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1843/3002503601.py:4: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1854/3002503601.py:4: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
print(np.row_stack([a, b]))
</pre></div>
</div>
Expand Down Expand Up @@ -1779,7 +1779,7 @@ <h2>Indexing vectors and arrays in Python<a class="headerlink" href="#indexing-v
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>-1.7950016288086892
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1843/518394352.py:3: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1854/518394352.py:3: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
print(np.trapz( x[x &gt; 2], y[x &gt; 2]))
</pre></div>
</div>
Expand Down Expand Up @@ -1876,17 +1876,17 @@ <h3>3D arrays<a class="headerlink" href="#id2" title="Link to this heading">#</a
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[[0.80321106 0.44641335 0.61280867]
[0.08561714 0.48916264 0.12148204]
[0.67663477 0.08682434 0.75214321]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[[0.48002794 0.97868829 0.88642924]
[0.51873709 0.59485089 0.46198812]
[0.20065208 0.80558278 0.40429193]]

[[0.05188889 0.83731674 0.53269215]
[0.68939332 0.41800378 0.9449533 ]
[0.37003968 0.94434034 0.18078264]]
[[0.77306348 0.02738732 0.3228694 ]
[0.43175158 0.1070621 0.56649795]
[0.82474244 0.29901801 0.1160524 ]]

[[0.6152774 0.34896826 0.39407928]
[0.56752324 0.35240605 0.32444222]
[0.30024248 0.49098965 0.78413294]]]
[[0.47549009 0.34115665 0.90873334]
[0.66160365 0.46052865 0.0972723 ]
[0.54247246 0.39699709 0.24047473]]]
</pre></div>
</div>
</div>
Expand All @@ -1900,11 +1900,11 @@ <h3>3D arrays<a class="headerlink" href="#id2" title="Link to this heading">#</a
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.80321106 0.08561714 0.67663477]
[0.05188889 0.68939332 0.37003968]
[0.6152774 0.56752324 0.30024248]]
[0.80321106 0.05188889 0.6152774 ]
[0.53269215 0.9449533 0.18078264]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.48002794 0.51873709 0.20065208]
[0.77306348 0.43175158 0.82474244]
[0.47549009 0.66160365 0.54247246]]
[0.48002794 0.77306348 0.47549009]
[0.3228694 0.56649795 0.1160524 ]
</pre></div>
</div>
</div>
Expand Down
32 changes: 27 additions & 5 deletions blog/data-analysis.html
Original file line number Diff line number Diff line change
Expand Up @@ -697,11 +697,33 @@ <h2>Linear regression with confidence intervals (updated)<a class="headerlink" h
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[ 4.90747573e-02 5.09057619e-02]
[-3.49867290e-04 -2.45825350e-04]
[ 5.40268319e-07 2.14670135e-06]
[-7.67338629e-09 7.03689494e-10]
[-3.23368759e-12 1.06276267e-11]]
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">ModuleNotFoundError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="n">Cell</span> <span class="n">In</span><span class="p">[</span><span class="mi">5</span><span class="p">],</span> <span class="n">line</span> <span class="mi">1</span>
<span class="ne">----&gt; </span><span class="mi">1</span> <span class="kn">from</span> <span class="nn">pycse</span> <span class="kn">import</span> <span class="n">regress</span>
<span class="g g-Whitespace"> </span><span class="mi">2</span> <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="g g-Whitespace"> </span><span class="mi">3</span> <span class="n">time</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">0.0</span><span class="p">,</span> <span class="mf">50.0</span><span class="p">,</span> <span class="mf">100.0</span><span class="p">,</span> <span class="mf">150.0</span><span class="p">,</span> <span class="mf">200.0</span><span class="p">,</span> <span class="mf">250.0</span><span class="p">,</span> <span class="mf">300.0</span><span class="p">])</span>

<span class="n">File</span> <span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">hostedtoolcache</span><span class="o">/</span><span class="n">Python</span><span class="o">/</span><span class="mf">3.11.9</span><span class="o">/</span><span class="n">x64</span><span class="o">/</span><span class="n">lib</span><span class="o">/</span><span class="n">python3</span><span class="mf">.11</span><span class="o">/</span><span class="n">site</span><span class="o">-</span><span class="n">packages</span><span class="o">/</span><span class="n">pycse</span><span class="o">/</span><span class="fm">__init__</span><span class="o">.</span><span class="n">py</span><span class="p">:</span><span class="mi">24</span>
<span class="g g-Whitespace"> </span><span class="mi">12</span> <span class="kn">from</span> <span class="nn">.PYCSE</span> <span class="kn">import</span> <span class="p">(</span>
<span class="g g-Whitespace"> </span><span class="mi">13</span> <span class="n">polyfit</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">14</span> <span class="n">regress</span><span class="p">,</span>
<span class="p">(</span><span class="o">...</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">20</span> <span class="n">lbic</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">21</span> <span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">22</span> <span class="kn">from</span> <span class="nn">.utils</span> <span class="kn">import</span> <span class="n">feq</span><span class="p">,</span> <span class="n">flt</span><span class="p">,</span> <span class="n">fgt</span><span class="p">,</span> <span class="n">fle</span><span class="p">,</span> <span class="n">fge</span><span class="p">,</span> <span class="n">read_gsheet</span>
<span class="ne">---&gt; </span><span class="mi">24</span> <span class="kn">from</span> <span class="nn">.hashcache</span> <span class="kn">import</span> <span class="n">hashcache</span>
<span class="g g-Whitespace"> </span><span class="mi">26</span> <span class="c1"># from .beginner import *</span>
<span class="g g-Whitespace"> </span><span class="mi">29</span> <span class="kn">from</span> <span class="nn">IPython</span> <span class="kn">import</span> <span class="n">get_ipython</span>

<span class="n">File</span> <span class="o">/</span><span class="n">opt</span><span class="o">/</span><span class="n">hostedtoolcache</span><span class="o">/</span><span class="n">Python</span><span class="o">/</span><span class="mf">3.11.9</span><span class="o">/</span><span class="n">x64</span><span class="o">/</span><span class="n">lib</span><span class="o">/</span><span class="n">python3</span><span class="mf">.11</span><span class="o">/</span><span class="n">site</span><span class="o">-</span><span class="n">packages</span><span class="o">/</span><span class="n">pycse</span><span class="o">/</span><span class="n">hashcache</span><span class="o">.</span><span class="n">py</span><span class="p">:</span><span class="mi">84</span>
<span class="g g-Whitespace"> </span><span class="mi">82</span> <span class="kn">import</span> <span class="nn">inspect</span>
<span class="g g-Whitespace"> </span><span class="mi">83</span> <span class="kn">import</span> <span class="nn">joblib</span>
<span class="ne">---&gt; </span><span class="mi">84</span> <span class="kn">import</span> <span class="nn">orjson</span>
<span class="g g-Whitespace"> </span><span class="mi">85</span> <span class="kn">import</span> <span class="nn">os</span>
<span class="g g-Whitespace"> </span><span class="mi">86</span> <span class="kn">from</span> <span class="nn">pathlib</span> <span class="kn">import</span> <span class="n">Path</span>

<span class="ne">ModuleNotFoundError</span>: No module named &#39;orjson&#39;
</pre></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion blog/differential-equations.html
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ <h3>Linear algebra approaches to solving systems of constant coefficient ODEs<a
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1898/2289625004.py:4: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1913/2289625004.py:4: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
T = np.row_stack([t, t])
</pre></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions blog/interpolation.html
Original file line number Diff line number Diff line change
Expand Up @@ -916,9 +916,9 @@ <h2>Interpolation with splines<a class="headerlink" href="#interpolation-with-sp
Function evaluations: 24
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1928/1138919460.py:26: DeprecationWarning: Conversion of an array with ndim &gt; 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1943/1138919460.py:26: DeprecationWarning: Conversion of an array with ndim &gt; 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
plt.title(&#39;Max point = ({0:1.2f}, {1:1.2f})&#39;.format(float(xmax),
/tmp/ipykernel_1928/1138919460.py:27: DeprecationWarning: Conversion of an array with ndim &gt; 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
/tmp/ipykernel_1943/1138919460.py:27: DeprecationWarning: Conversion of an array with ndim &gt; 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
float(f(xmax))));
</pre></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions blog/linear-algebra.html
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ <h2>Determining linear independence of a set of vectors<a class="headerlink" hre
2
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1955/3718588497.py:6: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1968/3718588497.py:6: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
A = np.row_stack([v1, v2, v3])
</pre></div>
</div>
Expand Down Expand Up @@ -1231,7 +1231,7 @@ <h3>Another example<a class="headerlink" href="#id2" title="Link to this heading
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[7.57773162 5.99149259]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1955/73961882.py:7: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1968/73961882.py:7: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
A = np.row_stack([v1, v2])
</pre></div>
</div>
Expand Down
Loading

0 comments on commit 3d50326

Please sign in to comment.