Skip to content

Commit 47c12e3

Browse files
committed
deploy: d0cc0e6
1 parent d33a7bd commit 47c12e3

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

Lesson_1_Basics/Lesson_1_Student_Version.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ <h4 class="anchored" data-anchor-id="introduction-to-jupyter-notebooks-and-googl
312312
<p>“The Jupyter Notebook is an incredibly powerful tool for interactively developing and presenting data science projects. A notebook integrates code and its output into a single document that combines visualizations, narrative text, mathematical equations, and other rich media. The intuitive workflow promotes iterative and rapid development, making notebooks an increasingly popular choice at the heart of contemporary data science, analysis, and increasingly science at large.” - <a href="https://www.dataquest.io/blog/jupyter-notebook-tutorial/">dataquest</a></p>
313313
<p>All of our lessons will be presented in Jupyter notebooks due to their interactive nature (.ipynb file extension). They consist of two main attributes, a <code>kernel</code> and <code>cells</code>. * A <code>kernel</code> interprets and executes the code. Here we are using the kernel for python; however, you can specify a kernel for another language like R. * A <code>cell</code> is a container for either text or code to be executed.</p>
314314
<p>To run the python code in a cell, you just hit shift + enter. Try it with the code below.</p>
315-
<div id="cell-7" class="cell">
315+
<div id="cell-7" class="cell" data-quarto="{&quot;engine&quot;:&quot;pyodide&quot;,&quot;autorun&quot;:false,&quot;echo&quot;:true}">
316316
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">'hello world'</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
317317
</div>
318318
</section>

index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ <h2 id="toc-title">Table of contents</h2>
195195
<li><a href="#welcome" id="toc-welcome" class="nav-link active" data-scroll-target="#welcome">Welcome 👋</a>
196196
<ul class="collapse">
197197
<li><a href="#lessons" id="toc-lessons" class="nav-link" data-scroll-target="#lessons">Lessons</a></li>
198-
<li><a href="#make-a-cell-interactive-example" id="toc-make-a-cell-interactive-example" class="nav-link" data-scroll-target="#make-a-cell-interactive-example">5 Make a cell interactive (example)</a></li>
198+
<li><a href="#try-an-interactive-pyodide-cell" id="toc-try-an-interactive-pyodide-cell" class="nav-link" data-scroll-target="#try-an-interactive-pyodide-cell">5 Try an interactive Pyodide cell</a></li>
199199
</ul></li>
200200
</ul>
201201
</nav>
@@ -310,10 +310,11 @@ <h2 class="anchored" data-anchor-id="lessons">Lessons</h2>
310310
<p><em>(Rows link to the rendered lesson pages; the right-hand URL opens the same notebook in Colab.)</em></p>
311311
<hr>
312312
</section>
313-
<section id="make-a-cell-interactive-example" class="level2">
314-
<h2 class="anchored" data-anchor-id="make-a-cell-interactive-example">5 Make a cell interactive (example)</h2>
315-
<p>Inside any notebook, select the cell ➜ <em>Property Inspector ▸ Cell Metadata</em> and add:</p>
316-
<p>```json { “quarto”: { “engine”: “pyodide”, “autorun”: false } }</p>
313+
<section id="try-an-interactive-pyodide-cell" class="level2">
314+
<h2 class="anchored" data-anchor-id="try-an-interactive-pyodide-cell">5 Try an interactive Pyodide cell</h2>
315+
<p>Below is a small Python snippet running <strong>in your browser</strong> via Pyodide. Click <strong>Run Code</strong> to execute it:</p>
316+
<p>#| autorun: false #| echo: true #| engine: pyodide</p>
317+
<p>sum([10, 20, 30, 40, 50])</p>
317318

318319

319320
<script type="ojs-module-contents">

search.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
]
2121
},
2222
{
23-
"objectID": "index.html#make-a-cell-interactive-example",
24-
"href": "index.html#make-a-cell-interactive-example",
23+
"objectID": "index.html#try-an-interactive-pyodide-cell",
24+
"href": "index.html#try-an-interactive-pyodide-cell",
2525
"title": "How to Learn to Code – Python for Data Science",
26-
"section": "5 Make a cell interactive (example)",
27-
"text": "5 Make a cell interactive (example)\nInside any notebook, select the cell ➜ Property Inspector ▸ Cell Metadata and add:\n```json { “quarto”: { “engine”: “pyodide”, “autorun”: false } }",
26+
"section": "5 Try an interactive Pyodide cell",
27+
"text": "5 Try an interactive Pyodide cell\nBelow is a small Python snippet running in your browser via Pyodide. Click Run Code to execute it:\n#| autorun: false #| echo: true #| engine: pyodide\nsum([10, 20, 30, 40, 50])",
2828
"crumbs": [
2929
"<span class='chapter-number'>1</span>  <span class='chapter-title'>How to Learn to Code – Python Class</span>"
3030
]

sitemap.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,50 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://how-to-learn-to-code.github.io/python-class/index.html</loc>
5-
<lastmod>2025-05-27T15:49:02.668Z</lastmod>
5+
<lastmod>2025-05-27T16:04:23.314Z</lastmod>
66
</url>
77
<url>
88
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_0_Introduction/Lesson_0_Student_Version.html</loc>
9-
<lastmod>2025-05-27T15:49:02.599Z</lastmod>
9+
<lastmod>2025-05-27T16:04:23.245Z</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_1_Basics/Lesson_1_Student_Version.html</loc>
13-
<lastmod>2025-05-27T15:49:02.600Z</lastmod>
13+
<lastmod>2025-05-27T16:04:23.245Z</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_2_Control_Structs/Lesson_2_Control_structs_student.html</loc>
17-
<lastmod>2025-05-27T15:49:02.600Z</lastmod>
17+
<lastmod>2025-05-27T16:04:23.245Z</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_3_Abstraction_Functions/functions_student.html</loc>
21-
<lastmod>2025-05-27T15:49:02.600Z</lastmod>
21+
<lastmod>2025-05-27T16:04:23.246Z</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_4_FileIO/Lesson_4_student.html</loc>
25-
<lastmod>2025-05-27T15:49:02.604Z</lastmod>
25+
<lastmod>2025-05-27T16:04:23.249Z</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_5_Pandas_DataFrame/Lesson5_pandas_DataFrame_Student.html</loc>
29-
<lastmod>2025-05-27T15:49:02.654Z</lastmod>
29+
<lastmod>2025-05-27T16:04:23.300Z</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_6_NumPy/Lesson_6_NumPy_Student_Version.html</loc>
33-
<lastmod>2025-05-27T15:49:02.655Z</lastmod>
33+
<lastmod>2025-05-27T16:04:23.301Z</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_7_Plotting/plotting_student.html</loc>
37-
<lastmod>2025-05-27T15:49:02.655Z</lastmod>
37+
<lastmod>2025-05-27T16:04:23.301Z</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_8a_Scikit_Learn/scikit_learn_student.html</loc>
41-
<lastmod>2025-05-27T15:49:02.658Z</lastmod>
41+
<lastmod>2025-05-27T16:04:23.304Z</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_8b_Python_Ecosystem/Lesson_8b_Python_Ecosystem_teacher.html</loc>
45-
<lastmod>2025-05-27T15:49:02.658Z</lastmod>
45+
<lastmod>2025-05-27T16:04:23.305Z</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://how-to-learn-to-code.github.io/python-class/Lesson_8c_scanpy/Lesson_8c_scanpy.html</loc>
49-
<lastmod>2025-05-27T15:49:02.662Z</lastmod>
49+
<lastmod>2025-05-27T16:04:23.308Z</lastmod>
5050
</url>
5151
</urlset>

0 commit comments

Comments
 (0)