diff --git a/assets/sample-notebook.ipynb b/assets/first-notebook.ipynb similarity index 100% rename from assets/sample-notebook.ipynb rename to assets/first-notebook.ipynb diff --git a/assets/screenshots/codespace-python-extension.png b/assets/screenshots/codespace-python-extension.png new file mode 100644 index 0000000..2049124 Binary files /dev/null and b/assets/screenshots/codespace-python-extension.png differ diff --git a/assets/screenshots/codespace-python-script.png b/assets/screenshots/codespace-python-script.png new file mode 100644 index 0000000..284dabf Binary files /dev/null and b/assets/screenshots/codespace-python-script.png differ diff --git a/requirements.txt b/requirements.txt index f1e2ba8..17aca4d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ # -pretext == 2.4.2.dev20240629061947 +pretext == 2.6.0 diff --git a/source/ch-coding.ptx b/source/ch-coding.ptx index 08a988c..b4b55c4 100644 --- a/source/ch-coding.ptx +++ b/source/ch-coding.ptx @@ -110,55 +110,135 @@ would like your Codespace to periodically run
-
-
-To get started, create a Codespace
-(New File...
. Name this file
-In a Codespace, any file with the extension IPYthon NoteBook
,
-Jupyter's original name)
-will be treated as a
-Jupyter notebook. When opening this file, you'll see a notebook
-interface, and be prompted to
-install the recommended 'Python' extension
if it's
-not already enabled - do this.
-
-Then in your notebook file, click the Select Kernel
-button, then Install/Enable suggested extensions
for
-Python+Jupyter. You should then have the option to select
-a Python environment
such as
-If successful, you should be able to enter
-
+Add the line play
icon (▶) should be displayed
+in the upper-right corner of the text editor (thanks to the
+Python extension you installed). Clicking
+this button should execute the code to print a greeting
+as in
+Unless your Codespace has been customized via a
+
+A
+To open a terminal on demand in a Codespace, use the shortcut +Ctrl/Cmd+Shift+`. +
+
-There are plenty of existing tutorials on the internet to help you
-get acquainted with Python and Jupyter now that you have them
-available to you in your Codespace. But to get you started, I've provided
-one
To spin up your live preview, open a terminal by using the
-Ctrl/Cmd+Shift+` keys. To make
+shortcut noted in
+README files are important! If you ever want to share your +repository source with someone else, it's the first thing +they will read. Likewise, if you want to use someone else's +repository, they will hopefully include first steps in their +own README file. +
+
Finally, you might be interested in visiting the
+In
+A
+Jupyter is a popular open-source tool used in
+data science, scientific computing, and computational journalism.
+GitHub provides a Codespace ready for running Jupyter notebooks
+out of the box:
+
+Let's begin by going to
+
+Clicking on each file, you'll note that while there's code,
+most of the file is actually narrative and visualization.
+That's the appeal of Jupyter for many people: it's about
+communicating stories, not just data or software.
+
+Additionally, you'll see a
+Now, let's follow the instructions of the repository's
+README file (Insights
tab for your repository, and specifically the Network
page.
diff --git a/source/ch-jupyter.ptx b/source/ch-jupyter.ptx
new file mode 100644
index 0000000..c6228b7
--- /dev/null
+++ b/source/ch-jupyter.ptx
@@ -0,0 +1,102 @@
+
+IPYthon NoteBook
,
+Jupyter's original name).
+