Skip to content

Commit c62e921

Browse files
committed
Create Jupyter Notebooks from Markdown sources
1 parent 10ffe01 commit c62e921

12 files changed

+7578
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ All of the source Markdown pages for the Modern C++ Tutorial on https://learnmod
66

77
**Note:** Some Chapters have had significant changes made to update them to C++23, and not all programs compile successfully yet. In particular, use of `std::println()` with `import std;` does not compile. In case of issues with your compiler please see the Releases page for the C++20 version of the Tutorial.
88

9+
**New:** Jupyter Notebooks have been auto-generated from the source Markdown files and are located in the `jupyter-notebooks` directory. You will need the executable `jupyter-lab` available with suitable C++ kernels, see output from running `jupyter kernelspec list` (tested with kernel `cpp23`, which needs to be set on first load).
10+
911
The "headers" subdirectory contains C++ programs with legacy header `#includes`, whilst the "modules" subdirectory contains the same programs using the `import` keyword instead. See https://learnmoderncpp.com/2020/09/05/where-are-c-modules/ for more details about C++ compilers which have support for modules.
1012

1113
The "scripts" subdirectory contains a C++ program which extracts all programs from the Markdown source to the above two folders.

jupyter-notebooks/01-string-and-character-literals.ipynb

Lines changed: 257 additions & 0 deletions
Large diffs are not rendered by default.

jupyter-notebooks/02-variables-scopes-and-namespaces.ipynb

Lines changed: 720 additions & 0 deletions
Large diffs are not rendered by default.

jupyter-notebooks/03-conditions-and-operators.ipynb

Lines changed: 550 additions & 0 deletions
Large diffs are not rendered by default.

jupyter-notebooks/04-functions.ipynb

Lines changed: 741 additions & 0 deletions
Large diffs are not rendered by default.

jupyter-notebooks/05-arrays-pointers-and-loops.ipynb

Lines changed: 690 additions & 0 deletions
Large diffs are not rendered by default.

jupyter-notebooks/06-enums-and-structs.ipynb

Lines changed: 688 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)