From 81ad6a9f14597453051d547516158b5d57a7f1b1 Mon Sep 17 00:00:00 2001 From: densnow <48718090+densnow@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:50:03 +0000 Subject: [PATCH] Fix #11: add M269 start guide (#17) * Initial M269 guide * Update M269 guidance * Build docs --------- Co-authored-by: Michel Wermelinger --- docs/404.html | 23 +- docs/deepnote-background/index.html | 23 +- docs/deepnote-how-to/index.html | 23 +- docs/deepnote-reference/index.html | 23 +- docs/deepnote/index.html | 23 +- docs/essays/example-1-to-n/index.html | 23 +- docs/essays/example-jewels/index.html | 23 +- docs/essays/example-two-sum-2/index.html | 23 +- docs/essays/example-two-sum-3/index.html | 23 +- .../template-data-structures/index.html | 23 +- .../template-intro-programming/index.html | 23 +- docs/example-essays/index.html | 47 +- docs/feedback/index.html | 23 +- docs/getting-started-m269/index.html | 1066 +++++++++++++++++ docs/getting-started/index.html | 35 +- docs/index.html | 45 +- docs/library/index.html | 23 +- docs/search/search_index.json | 2 +- docs/sitemap.xml | 37 +- docs/sitemap.xml.gz | Bin 358 -> 365 bytes docs/writing/index.html | 29 +- mkdocs.yml | 3 +- src/docs/example-essays.md | 22 +- src/docs/getting-started-m269.md | 71 ++ src/docs/index.md | 26 +- 25 files changed, 1603 insertions(+), 79 deletions(-) create mode 100644 docs/getting-started-m269/index.html create mode 100644 src/docs/getting-started-m269.md diff --git a/docs/404.html b/docs/404.html index de96e28..fae64a1 100644 --- a/docs/404.html +++ b/docs/404.html @@ -326,7 +326,28 @@ - Getting started + Get started (Deepnote) + + + + + + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/deepnote-background/index.html b/docs/deepnote-background/index.html index 7fe69e8..50c8032 100644 --- a/docs/deepnote-background/index.html +++ b/docs/deepnote-background/index.html @@ -337,7 +337,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/deepnote-how-to/index.html b/docs/deepnote-how-to/index.html index 9ccb4c9..f469aa7 100644 --- a/docs/deepnote-how-to/index.html +++ b/docs/deepnote-how-to/index.html @@ -337,7 +337,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/deepnote-reference/index.html b/docs/deepnote-reference/index.html index 7c56672..fec060a 100644 --- a/docs/deepnote-reference/index.html +++ b/docs/deepnote-reference/index.html @@ -335,7 +335,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/deepnote/index.html b/docs/deepnote/index.html index 4b45197..e028029 100644 --- a/docs/deepnote/index.html +++ b/docs/deepnote/index.html @@ -337,7 +337,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/essays/example-1-to-n/index.html b/docs/essays/example-1-to-n/index.html index c2166b9..5336fb6 100644 --- a/docs/essays/example-1-to-n/index.html +++ b/docs/essays/example-1-to-n/index.html @@ -333,7 +333,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/essays/example-jewels/index.html b/docs/essays/example-jewels/index.html index 67072a0..e45e6a3 100644 --- a/docs/essays/example-jewels/index.html +++ b/docs/essays/example-jewels/index.html @@ -333,7 +333,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/essays/example-two-sum-2/index.html b/docs/essays/example-two-sum-2/index.html index ad477e8..fe024e5 100644 --- a/docs/essays/example-two-sum-2/index.html +++ b/docs/essays/example-two-sum-2/index.html @@ -333,7 +333,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/essays/example-two-sum-3/index.html b/docs/essays/example-two-sum-3/index.html index dbea8d6..47f3847 100644 --- a/docs/essays/example-two-sum-3/index.html +++ b/docs/essays/example-two-sum-3/index.html @@ -333,7 +333,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/essays/template-data-structures/index.html b/docs/essays/template-data-structures/index.html index bdb5009..615c6a9 100644 --- a/docs/essays/template-data-structures/index.html +++ b/docs/essays/template-data-structures/index.html @@ -333,7 +333,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/essays/template-intro-programming/index.html b/docs/essays/template-intro-programming/index.html index afabb01..e48859b 100644 --- a/docs/essays/template-intro-programming/index.html +++ b/docs/essays/template-intro-programming/index.html @@ -333,7 +333,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/example-essays/index.html b/docs/example-essays/index.html index 85cee24..302a9e5 100644 --- a/docs/example-essays/index.html +++ b/docs/example-essays/index.html @@ -415,7 +415,28 @@ - Getting started + Get started (Deepnote) + + + + +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) @@ -823,20 +844,23 @@

    Example essays

    These examples illustrate different ways of structuring essays and different writing styles.

    -

    Some essays have a template that highlights the essay’s structure and -the purpose of each section. +

    For some essays, there’s a template that highlights the essay’s structure and +the purpose of each section. These templates help you start writing your own essay. Clicking on a button below will open a read-only version of the essay or template.

    -

    Once you have created a Deepnote account and copied our project, -as explained in Getting started, -you will have access to editable versions of the examples and templates, so that -you can use them as starting points for your essays.

    +

    To get an editable version of a template to start writing your own essay, +right-click on a download button. From the pop-up menu, choose ‘Save file as…’ +(or similar) to save the template in a folder of your choice.

    +

    If you’re using Deepnote, you don’t need to download anything because +you will have the essay templates and examples once you copied our essay project, +as explained in Getting started (Deepnote).

    Sum of 1 to n

    This is a short and simple essay, suitable for those on introductory programming courses. The essay shows two ways of calculating 1 + 2 + … + n and compares their run-times. The essay follows a simple structure, in which each approach is outlined, implemented and tested before moving on to the next one.

    Essay -Template

    +Template +Template (download)

    Jewels and Stones

    This is a longer essay, for those on data structures and algorithms courses. The problem is to count how many characters of a string occur in another string. @@ -845,7 +869,8 @@

    Jewels and Stones

    This essay follows a slightly different structure, in which each approach is outlined and its complexity analysed, before deciding which approaches are worth implementing.

    Essay -Template

    +Template +Template (download)

    Two Sum (two approaches)

    This classic problem asks to find two numbers in a list that add up exactly to a given number. This essay solves the problem in two ways, with brute-force search (nested loops) @@ -901,13 +926,13 @@

    Two Sum (three approaches)

    - +
  • + + + + + + + + + + +
  • + + + + + Get started (M269) diff --git a/docs/getting-started-m269/index.html b/docs/getting-started-m269/index.html new file mode 100644 index 0000000..36a2a57 --- /dev/null +++ b/docs/getting-started-m269/index.html @@ -0,0 +1,1066 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Get started (M269) - Algorithmic Essays + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + Skip to content + + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    + + + + + + + +

    Getting started (M269)

    +

    If you’re an M269 student, follow these steps to start writing essays within a few minutes.

    +

    Install software (optional)

    +

    While you can write essays with your current M269 software, +we recommend installing two more packages to help you +test, check the style, and measure the run-time of code.

    +
      +
    1. Activate your M269 environment as usual:
        +
      • Open a PowerShell (Windows) or terminal (Linux / macOS), and enter m269-23j.
      • +
      • The prompt should now be (m269-23j) ... and you should be in your M269 folder.
      • +
      +
    2. +
    3. +

      To install the software, enter pip install algoesup ruff allowed in the PowerShell / terminal.

      +
      +

      Note

      +

      The command installs a version of allowed that can be used from +within the notebook, to check the code cell by cell. +Do not delete the allowed.py and m269.json files in your M269 folder. +You will continue to need them to check your TMAs before submission.

      +
      +
    4. +
    5. +

      The software needs a configuration file named pyproject.toml. + Right-click on this link + and select ‘Download / Save file as…’ to save the file to your M269 folder. + Do not change its name.

      +
    6. +
    +

    Copy template

    +

    We have created templates to serve as starting points for your essay.

    +
      +
    1. Go to our example essays page.
    2. +
    3. Choose a template and right-click on the corresponding download button.
    4. +
    5. Select ‘Download / Save file as…’ and save the template to your M269 folder, + with a filename that includes your name (e.g. essay-Michael.ipynb) + or indicates the topic (e.g. balanced-brackets.ipynb). + If you prefer, you can rename the file later, when you settled on a topic.
    6. +
    +

    Write the essay

    +

    With the essay template in your M269 folder, you can work on it in the same way +you do with the book’s chapters and your TMAs.

    +
      +
    1. Open a PowerShell or terminal.
    2. +
    3. Enter m269-23j to activate your M269 environment and go to your M269 folder.
    4. +
    5. Enter nb to open the Jupyter dashboard, from which you can open the essay.
    6. +
    +

    Share the essay

    +

    Once you have a draft you want others to give feedback on, +make a post in the VLE forum corresponding to the topic of your essay, +and attach your notebook file.

    +

    For example, if your essay is about ordered or unordered collections, +post it in the Weeks 1-10 forum, but if it also uses recursion or a sorting algorithm, +post it in the Weeks 11–20 forum.

    +

    Once you have addressed others’ feedback, post the final version of your essay, +acknowledging the commenters.

    +

    Publish the essay (optional)

    +

    If you want to publish your essay outside the M269 forums, you have several options.

    +
      +
    • Ask us in the forum to add your essay to the algoesup GitHub repository, + with a link from the example essays page. The copyright of your essay remains with you.
    • +
    • Create your own GitHub repository for your notebook file. + (Learning how to use GitHub for software development is a valuable professional skill.)
    • +
    • Make your essay available via a cloud Jupyter environment, like + Cocalc, Colab, + Datalore and Deepnote.
    • +
    + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/getting-started/index.html b/docs/getting-started/index.html index 2ffc9f2..8fc34f1 100644 --- a/docs/getting-started/index.html +++ b/docs/getting-started/index.html @@ -14,7 +14,7 @@ - + @@ -22,7 +22,7 @@ - Getting started - Algorithmic Essays + Get started (Deepnote) - Algorithmic Essays @@ -108,7 +108,7 @@
    - Getting started + Get started (Deepnote)
    @@ -348,7 +348,7 @@ - Getting started + Get started (Deepnote) @@ -359,7 +359,7 @@ - Getting started + Get started (Deepnote) @@ -416,6 +416,27 @@ + + + + + + +
  • + + + + + Get started (M269) + + + + +
  • + + + + @@ -925,13 +946,13 @@

    Copy a template and edit it

    - +