diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index b6999db..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: publish - -on: - push: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4.2.2 - with: - submodules: true - - uses: xu-cheng/texlive-action@d9f893f837a29f066e3c70080540976b47263721 - with: - scheme: full - run: | - apk add cargo gcc linux-headers musl-dev py3-pip python3 python3-dev rust - ./make.sh -# deploy to github pages - - name: deploy documentation - uses: JamesIves/github-pages-deploy-action@94f3c658273cf92fb48ef99e5fbc02bd2dc642b2 - with: - branch: gh-pages - folder: /home/runner/work/programmingWithPythonSlides/programmingWithPythonSlides/website/ - single-commit: true diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 638d38b..0000000 --- a/.gitignore +++ /dev/null @@ -1,479 +0,0 @@ -## Core latex/pdflatex auxiliary files: -*.aux -*.ind -*.lof -*.log -*.lot -*.fls -*.out -*.toc -*.fmt -*.fot -*.cb -*.cb2 -.*.lb - -## Intermediate documents: -*.dvi -*.xdv -*-converted-to.* -*.ps -*.eps - -## Generated if empty string is given at "Please type another file name for output:" -.pdf -book.pdf -.latexgit.* - -# any potential git archive folder -__git__ -**/__git__ -*.latexgit.* - -# the project files -.idea - -## Bibliography auxiliary files (bibtex/biblatex/biber): -*.bbl -*.bcf -*.blg -*-blx.aux -*-blx.bib -*.run.xml - -## Build tool auxiliary files: -*.fdb_latexmk -*.synctex -*.synctex(busy) -*.synctex.gz -*.synctex.gz(busy) -*.pdfsync - -## Auxiliary and intermediate files from other packages: -# algorithms -*.alg -*.loa - -# achemso -acs-*.bib - -# amsthm -*.thm - -# beamer -*.nav -*.pre -*.snm -*.vrb - -# changes -*.soc - -# comment -*.cut - -# cprotect -*.cpt - -# elsarticle (documentclass of Elsevier journals) -*.spl - -# endnotes -*.ent - -# fixme -*.lox - -# feynmf/feynmp -*.mf -*.mp -*.t[1-9] -*.t[1-9][0-9] -*.tfm - -#(r)(e)ledmac/(r)(e)ledpar -*.end -*.?end -*.[1-9] -*.[1-9][0-9] -*.[1-9][0-9][0-9] -*.[1-9]R -*.[1-9][0-9]R -*.[1-9][0-9][0-9]R -*.eledsec[1-9] -*.eledsec[1-9]R -*.eledsec[1-9][0-9] -*.eledsec[1-9][0-9]R -*.eledsec[1-9][0-9][0-9] -*.eledsec[1-9][0-9][0-9]R - -# glossaries -*.acn -*.acr -*.glg -*.glo -*.gls -*.glsdefs -*.lzo -*.lzs -*.slg -*.slo -*.sls - -# uncomment this for glossaries-extra (will ignore makeindex's style files!) -# *.ist - -# gnuplot -*.gnuplot -*.table - -# gnuplottex -*-gnuplottex-* - -# gregoriotex -*.gaux -*.glog -*.gtex - -# htlatex -*.4ct -*.4tc -*.idv -*.lg -*.trc -*.xref - -# hyperref -*.brf - -# knitr -*-concordance.tex -# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files -# *.tikz -*-tikzDictionary - -# listings -*.lol - -# luatexja-ruby -*.ltjruby - -# makeidx -*.idx -*.ilg -*. -*.ist - -# minitoc -*.maf -*.mlf -*.mlt -*.mtc[0-9]* -*.slf[0-9]* -*.slt[0-9]* -*.stc[0-9]* - -# minted -_minted* -*.pyg - -# morewrites -*.mw - -# newpax -*.newpax - -# nomencl -*.nlg -*.nlo -*.nls - -# pax -*.pax - -# pdfpcnotes -*.pdfpc - -# sagetex -*.sagetex.sage -*.sagetex.py -*.sagetex.scmd - -# scrwfile -*.wrt - -# svg -svg-inkscape/ - -# sympy -*.sout -*.sympy -sympy-plots-for-*.tex/ - -# pdfcomment -*.upa -*.upb - -# pythontex -*.pytxcode -pythontex-files-*/ - -# tcolorbox -*.listing - -# thmtools -*.loe - -# TikZ & PGF -*.dpth -*.md5 -*.auxlock - -# titletoc -*.ptc - -# todonotes -*.tdo - -# vhistory -*.hst -*.ver - -# easy-todo -*.lod - -# xcolor -*.xcp - -# xmpincl -*.xmpi - -# xindy -*.xdy - -# xypic precompiled matrices and outlines -*.xyc -*.xyd - -# endfloat -*.ttt -*.fff - -# Latexian -TSWLatexianTemp* - -## Editors: -# WinEdt -*.bak -*.sav - -# Texpad -.texpadtmp - -# LyX -*.lyx~ - -# Kile -*.backup - -# gummi -.*.swp - -# KBibTeX -*~[0-9]* - -# TeXnicCenter -*.tps - -# auto folder when using emacs and auctex -./auto/* -*.el - -# expex forward references with \gathertags -*-tags.tex - -# standalone packages -*.sta - -# Makeindex log files -*.lpz - -# xwatermark package -*.xwm - -# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib -# option is specified. Footnotes are the stored in a file with suffix Notes.bib. -# Uncomment the next line to have this generated file ignored. -#*Notes.bib - -# the generated website -website - -# idea gui -.idea/ -.idea_modules/ - -# rstudio gui -.Rproj.user -.Rhistory -.RData -.Ruserdata -*.Rproj - -# eclipse -/.settings -.project - -# Gradle and Maven with auto-import -*.iml -*.ipr - -# CMake -cmake-build-*/ - -# File-based project format -*.iws - -# IntelliJ -out/ - -# JIRA plugin -atlassian-ide-plugin.xml - -# Crashlytics plugin (for Android Studio and IntelliJ) -com_crashlytics_export_strings.xml -crashlytics.properties -crashlytics-build.properties -fabric.properties - -# Byte-compiled / optimized / DLL files -**/__pycache__ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -pip-wheel-metadata/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -.pytype/ -MANIFEST - -# PyInstaller -# Usually these files are written by a whyPython script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -.python-version - -# pipenv -Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ -/.github/ - -# Python index -python.idx -python.ilg -python.ind diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index cba3b7d..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "bookbase"] - path = bookbase - url = https://github.com/thomasWeise/bookbase diff --git a/.nojekyll b/.nojekyll new file mode 100755 index 0000000..e69de29 diff --git a/01_introduction.pdf b/01_introduction.pdf new file mode 100755 index 0000000..efa61f7 Binary files /dev/null and b/01_introduction.pdf differ diff --git a/02_getting_started.pdf b/02_getting_started.pdf new file mode 100755 index 0000000..494fa1c Binary files /dev/null and b/02_getting_started.pdf differ diff --git a/DEPENDENCIES.html b/DEPENDENCIES.html new file mode 100755 index 0000000..15cac52 --- /dev/null +++ b/DEPENDENCIES.html @@ -0,0 +1,26 @@ +Programming with Python: Dependencies
${toc}

Programming with Python Dependencies

+Alpine Linux 3.21.3
+Linux 6.11.0-1014-azure x86_64
+
+python: 3.12.10
+latexgit_py: 0.8.27
+latexgit_tex: 0.8.5
+pycommons: 0.8.65
+pdflatex: pdfTeX 3.141592653-2.6-1.40.27 (TeX Live 2025)
+biber: 2.20
+makeglossaries: 4.6 (2025-04-14)
+ghostscript: 10.04.0 (2024-09-18)
+
+date: 2025-05-23 03:28:05 +0000
+

python3 -m pip freeze

+latexgit==0.8.27
+Markdown==3.7
+minify_html==0.15.0
+platformdirs==4.3.8
+psutil==7.0.0
+pycommons==0.8.65
+Pygments==2.18.0
+strip-hints==0.1.13
+wheel==0.45.1
+yapf==0.43.0
+
built on: 2025-05-23 03:28:05 +0000
diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md new file mode 100755 index 0000000..ce95cbe --- /dev/null +++ b/DEPENDENCIES.md @@ -0,0 +1,32 @@ +## Programming with Python Dependencies + +``` +Alpine Linux 3.21.3 +Linux 6.11.0-1014-azure x86_64 + +python: 3.12.10 +latexgit_py: 0.8.27 +latexgit_tex: 0.8.5 +pycommons: 0.8.65 +pdflatex: pdfTeX 3.141592653-2.6-1.40.27 (TeX Live 2025) +biber: 2.20 +makeglossaries: 4.6 (2025-04-14) +ghostscript: 10.04.0 (2024-09-18) + +date: 2025-05-23 03:28:05 +0000 +``` + +python3 -m pip freeze + +``` +latexgit==0.8.27 +Markdown==3.7 +minify_html==0.15.0 +platformdirs==4.3.8 +psutil==7.0.0 +pycommons==0.8.65 +Pygments==2.18.0 +strip-hints==0.1.13 +wheel==0.45.1 +yapf==0.43.0 +``` diff --git a/LICENSE.html b/LICENSE.html new file mode 100755 index 0000000..e0000bf --- /dev/null +++ b/LICENSE.html @@ -0,0 +1,18 @@ +Programming with Python: License

creative commons

Attribution-NonCommercial-ShareAlike 4.0 International

Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.

Using Creative Commons Public Licenses

Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.

  • Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.

  • Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.

Section 1 – Definitions.

a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.

b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.

c. BY-NC-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.

d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.

e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.

f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.

g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution, NonCommercial, and ShareAlike.

h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.

i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.

h. Licensor means the individual(s) or entity(ies) granting rights under this Public License.

i. NonCommercial means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange.

j. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.

k. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.

l. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.

Section 2 – Scope.

a. License grant.

  1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:

    A. reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only; and
    +
    +B. produce, reproduce, and Share Adapted Material for NonCommercial purposes only.
    +
  2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.

  3. Term. The term of this Public License is specified in Section 6(a).

  4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.

  5. Downstream recipients.

    A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
    +
    +B. __Additional offer from the Licensor – Adapted Material.__ Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
    +
    +C. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
    +
  6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).

b. Other rights.

  1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.

  2. Patent and trademark rights are not licensed under this Public License.

  3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial purposes.

Section 3 – License Conditions.

Your exercise of the Licensed Rights is expressly made subject to the following conditions.

a. Attribution.

  1. If You Share the Licensed Material (including in modified form), You must:

    A. retain the following if it is supplied by the Licensor with the Licensed Material:

     i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
    +
    + ii. a copyright notice;
    +
    + iii. a notice that refers to this Public License;
    +
    + iv. a notice that refers to the disclaimer of warranties;
    +
    + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
    +

    B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and

    C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.

  2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.

  3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.

b. ShareAlike.

In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.

  1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-NC-SA Compatible License.

  2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.

  3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.

Section 4 – Sui Generis Database Rights.

Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:

a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial purposes only;

b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and

c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.

For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.

Section 5 – Disclaimer of Warranties and Limitation of Liability.

a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.

b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.

c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.

Section 6 – Term and Termination.

a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.

b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:

  1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or

  2. upon express reinstatement by the Licensor.

For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.

c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.

d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.

Section 7 – Other Terms and Conditions.

a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.

b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.

Section 8 – Interpretation.

a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.

b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.

c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.

d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.

Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.

Creative Commons may be contacted at creativecommons.org

built on: 2025-05-23 03:28:04 +0000
diff --git a/LICENSE.md b/LICENSE.md old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/bookbase b/bookbase deleted file mode 160000 index 0ff9c3a..0000000 --- a/bookbase +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0ff9c3afb411b654ff6c03535f78c131f6e5c692 diff --git a/index.html b/index.html new file mode 100755 index 0000000..77d558e --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Programming with Python

Programming with Python

1. Introduction

"Programming with Python" is both a book and a course held at Hefei University (合肥大学). We here provide all the resources of this course.

The goal of the course and book is to teach undergraduate and graduate students how to program with the Python programming language. The resources may also be suitable to high school students or whoever else may be interested in the topic. Our aim is to strike a good balance between theory and practice, leaning more to the practice side. In particular, we try to teach programming together with some software engineering concepts. It is the firm opinion of the author that these two cannot be separated. Teaching programming alone without introducing tools such as static code analysis, unit tests, and enforcing principles such as code style and proper commenting will create bad programmers. So we discuss these aspects while working our way through the principles of programming.

2. Resources

The website with up-to-date information about the course is https://thomasweise.github.io/programmingWithPython.

2.1. The Book

The book itself can be downloaded as pdf at https://thomasweise.github.io/programmingWithPython/programmingWithPython.pdf.

2.2. The Slides

The slides for the course are available at https://thomasweise.github.io/programmingWithPythonSlides and also listed below.

  1. Introduction
  2. Getting Started

2.3. The Example Python Programs

Our course offers a lot of examples. You can find all of them in the repository https://github.com/thomasWeise/programmingWithPythonCode.

2.4. LaTeX Sources, Graphics, Bibliography, etc.

Both the book and the slides are written in LaTeX. You can find their sources in https://github.com/thomasWeise/programmingWithPython and https://github.com/thomasWeise/programmingWithPythonSlides, respectively. You may use these files under the licensing terms provided below.

3. License

All the course material is freely available. You can download its newest version from https://thomasweise.github.io/programmingWithPython. This version may change since this course and book both are work in progress. You can freely share this. You can also copy text or figures under the license given below, as long as you cite the book as the original source, e.g., by using the following BibTeX:

@book{programmingWithPython,
 author = {Thomas Weise},
 title = {Programming with Python},
 year = {2024--2025},
 publisher = {Institute of Applied Optimization,
              School of Artificial Intelligence and Big Data,
              Hefei University},
 address = {Hefei, Anhui, China},
 url = {https://thomasweise.github.io/programmingWithPython}
}

If you have any comments or suggestions regarding the book, or if you spotted an error or typo, please feel free to submit an issue here. Your feedback would help us to improve the book.

This book is released under the Attribution-NonCommercial-ShareAlike 4.0 International license (CC BY‑NC‑SA 4.0), see http://creativecommons.org/licenses/by-nc-sa/4.0/ for a summary.

We statically include the pdfsizeopt tool in the GitHub Repository of our book and use it during the book compiling and building process to compress the book pdf file. This tool is excluded from the license mentioned above. It is under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991 and the copyright belongs to its authors.

4. Contact

If you have any questions or suggestions, please contact Prof. Dr. Thomas Weise (汤卫思教授) at the Institute of Applied Optimization (应用优化研究所, IAO) of the School of Artificial Intelligence and Big Data (人工智能与大数据学院) of Hefei University (合肥大学), in Hefei, Anhui, China (中国安徽省合肥市) via email to tweise@hfuu.edu.cn with CC to tweise@ustc.edu.cn.

built on: 2025-05-23 03:28:03 +0000
diff --git a/make.sh b/make.sh deleted file mode 100755 index 3def9a9..0000000 --- a/make.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Make the slides. - -# strict error handling -set -o pipefail # trace ERR through pipes -set -o errtrace # trace ERR through 'time command' and other functions -set -o nounset # set -u : exit the script if you try to use an uninitialized variable -set -o errexit # set -e : exit the script if any statement returns a non-true return value - -./bookbase/scripts/slidesMake.sh "Programming with Python" "https://thomasweise.github.io/programmingWithPythonSlides" diff --git a/shared/graphics/qr/bookUrl.pdf b/shared/graphics/qr/bookUrl.pdf deleted file mode 100644 index 0918d8d..0000000 Binary files a/shared/graphics/qr/bookUrl.pdf and /dev/null differ diff --git a/shared/graphics/qr/bookUrl.svg b/shared/graphics/qr/bookUrl.svg deleted file mode 100644 index cd790b0..0000000 --- a/shared/graphics/qr/bookUrl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/shared/graphics/qr/courseUrl.pdf b/shared/graphics/qr/courseUrl.pdf deleted file mode 100644 index f753d21..0000000 Binary files a/shared/graphics/qr/courseUrl.pdf and /dev/null differ diff --git a/shared/graphics/qr/courseUrl.svg b/shared/graphics/qr/courseUrl.svg deleted file mode 100644 index 833f771..0000000 --- a/shared/graphics/qr/courseUrl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/shared/styles/graphics.tex b/shared/styles/graphics.tex deleted file mode 100644 index aa1bd56..0000000 --- a/shared/styles/graphics.tex +++ /dev/null @@ -1,5 +0,0 @@ -%% Set the path to the graphics -%% -\xdef\courseUrlQR{\sharedDir/graphics/qr/courseUrl}% -\xdef\bookUrlQR{\sharedDir/graphics/qr/bookUrl}% -% diff --git a/shared/styles/intro_slide.tex b/shared/styles/intro_slide.tex deleted file mode 100644 index 2ca7418..0000000 --- a/shared/styles/intro_slide.tex +++ /dev/null @@ -1,26 +0,0 @@ -%% -%% Render the intro slides -\protected\gdef\introSlide{% -% -\begin{frame}[t]% -\frametitle{Programming with \python}% -\locate{}{% -\parbox{\paperwidth}{% -\vspace{0.035\paperheight}% -\strut\hfill\strut% -\includegraphics[width=0.085\paperwidth]{\bookbaseDir/graphics/logos/hfuu_logo_round}% -\strut\hspace{0.05\paperwidth}\strut% -}}{0}{0}% -\locateGraphic{}{width=0.2\paperwidth}{\sharedDir/graphics/qr/courseUrl}{0.775}{0.61}% -% -\locate{}{% -\parbox{0.85\paperwidth}{% -This is a course on programming with the \python\ language at Hefei University~(合肥大学).\\[9pt]% -% -The website with the teaching material of this course is \expandafter\href{\programmingWithPythonUrl}{\programmingWithPythonUrl} (see also the QR\nobreakdashes-code at the bottom right). -There, you can find the course book and these slides. -The repository with the example \python\ programs can be found at~\expandafter\href{\programmingWithPythonCodeRepo}{\programmingWithPythonCodeRepo}.% -}}{0.06}{0.225}% -\end{frame}% -}% -% diff --git a/shared/styles/styles.sty b/shared/styles/styles.sty deleted file mode 100644 index 718959c..0000000 --- a/shared/styles/styles.sty +++ /dev/null @@ -1,7 +0,0 @@ -% -% -\title{Programming with Python}% -% -\input{\sharedDir/styles/graphics.tex}% -\input{\sharedDir/styles/intro_slide.tex}% -% diff --git a/single.sh b/single.sh deleted file mode 100755 index 38751cb..0000000 --- a/single.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Make a single slide. - -# strict error handling -set -o pipefail # trace ERR through pipes -set -o errtrace # trace ERR through 'time command' and other functions -set -o nounset # set -u : exit the script if you try to use an uninitialized variable -set -o errexit # set -e : exit the script if any statement returns a non-true return value - -./bookbase/scripts/slidesSingle.sh "$1" diff --git a/slides/01_introduction/01_introduction.tex b/slides/01_introduction/01_introduction.tex deleted file mode 100644 index fed18e8..0000000 --- a/slides/01_introduction/01_introduction.tex +++ /dev/null @@ -1,207 +0,0 @@ -\pdfminorversion=7% -\documentclass[aspectratio=169,mathserif,notheorems]{beamer}% -% -\xdef\bookbaseDir{../../bookbase}% -\xdef\sharedDir{../../shared}% -\RequirePackage{\bookbaseDir/styles/slides}% -\RequirePackage{\sharedDir/styles/styles}% -% -\subtitle{Introduction}% -% -\begin{document}% -% -\startPresentation% -% -\section{Introduction}% -% -\begin{frame}% -\frametitle{Introduction}% -\begin{itemize}% -\item This course aims to teach you programming using the programming language Python.% -\item<2-> What does \emph{programming} mean?% -\item<3-> Programming means that we delegate a task to the computer.% -\item<4-> We have this job to do, this thing.% -\item<5-> Maybe it is too complicated and time consuming to do.% -\item<6-> Maybe it is something that we have to do very often.% -\item<7-> Maybe it is something that we cannot, physically, do.% -\item<8-> Maybe we are just lazy.% -\item<9-> So we want that the computer does it for us.% -\end{itemize}% -\end{frame}% -% -\begin{frame}% -\frametitle{Introduction}% -\begin{itemize}% -\item Whenever we delegate a task to another person, we need to explain it.% -\item<2-> If you are a chef in a kitchen, you have to tell the junior trainee chef: \inQuotes{First you wash the potatoes, then peel the potato skin, then you wash the potatoes again, and then you cook them.}% -\item<3-> If you are visiting the hairdresser to get your hair done, you would say something like: -\inQuotes{Wash my hair, then cut it down to 1cm on the top, trim the sides, then color it green.} -\item<4-> You provide the other person with a clear and unambiguous sequence of instructions in a language they can understand.% -\item<5-> In this book, you will learn to do the same --- with computers.% -\end{itemize}% -\end{frame}% -% -% -\section{Programming vs.\ Software Development}% -% -\begin{frame}% -\frametitle{Programming}% -% -\begin{definition}[Computer Program]% -A \emph{computer program} is an unambiguous sequence of computational instructions for a computer to achieve a specific goal.% -\end{definition}% -% -\begin{definition}[Programming]% -\label{def:programming} -\emph{Programming} is the activity or job of writing computer programs\cite{CDE:PMOPIE}.% -\end{definition}% -% -\end{frame}% -% - -\begin{frame}% -\frametitle{Programming}% -\begin{itemize}% -\item In the vast majority of situations, we do not create a program to just use it one single time.% -\item<2-> This is similar to the real life situation of work delegation again. -\item<3-> If you were a chef, you basically \inQuotes{input} the \inQuotes{program} \emph{cook potatoes} into the junior trainee once. -\item<4-> In the future, you would like to be able go to them and invoke this program again by saying:~\inQuotes{Please cook 2kg of potatoes.} -\item<5-> Our \inQuotes{programs} often even have implicit parameters, like the quantity of~2kg mentioned above. -\item<6-> Maybe you go to the hairdresser again and want to say: \inQuotes{Same as usual, but today color it blue.}% -\end{itemize}% -\end{frame}% -% - -\begin{frame}% -\frametitle{Programming}% -\begin{itemize}% -\item In our day-to-day interactions, creating reusable and parameterized programs happens very often and very implicitly.% -\item<2-> We usually do not think about this in any explicit terms.% -\item<3-> But when we program computers, we do think about this explicitly.% -\item<4-> Right from the start.% -\item<5-> Therefore \alert{programming is only one part of software development}. -\end{itemize}% -\end{frame}% -% -\begin{frame}% -\frametitle{Developing Software}% -\begin{itemize}% -\item Later in your job, you want to develop a program that can be used to solve a specific task.% -\uncover<2->{% -\begin{enumerate}% -\item You write the program.% -\item<3-> You now have the file with the program code.% -\item<4-> The problem is solved.% -\end{enumerate}% -}% -\item<5-> Is it that easy?\uncover<6->{ \alert<6>{No.}% -\uncover<7->{% -\begin{enumerate}% -\item You may wonder whether you made any mistake.\uncover<8->{ People make mistakes.\uncover<9->{ The more complex the task we tackle, the more (program code) we write, the more likely it is that we make some small error somewhere.\uncover<10->{ \alert<10>{You must test your program.}}}}% -\item<11-> What if someone else is going to use your program later?\uncover<12->{ \alert<12>{You need to write clear documentation.}}% -\item<13-> What if your program or packages provides functions that others can use?\uncover<14->{ \alert<14>{The input and output datatypes must be clearly specified.}}% -\item<15-> What if someone else is supposed to read your code and work with it?\uncover<16->{ \alert<16>{Your code must be readable, clear, and follow common coding styles\cite{PEP8}.}}% -\end{enumerate}% -}}% -\item<17-> All of these things must be considered!% -\end{itemize}% -\end{frame}% -% -% -\begin{frame}% -\frametitle{Developing Software}% -\begin{itemize}% -\item Developing software is more than writing programs.% -\item<2-> Most jobs are more than just the associated \inQuotes{main work}\uncover<3->{% -\begin{itemize}% -\item Let's say that you need to go to a doctor to undergo some procedure.% -\item<4-> You hope that they have been trained well in doing operations.% -\item<5-> But you simply expect that they were also trained to wash their hands before surgery.% -\end{itemize}% -}% -\item<6-> It is the same for programmers!\uncover<7->{% -\begin{itemize}% -\item Let's say that your boss asks you to write a program.% -\item<8-> They hope that you can write a program that \inQuotes{works.}% -\item<9-> But they expect that the code that you produced is readable, was tested, and is documented.% -\end{itemize}% -}% -\item<10-> I do not want to go to a surgeon who does not wash their hands before operating on me.% -\item<11-> And I will not teach you programming without emphasizing code cleanliness.% -\end{itemize}% -\end{frame}% -% -% -\begin{frame}% -\frametitle{Developing Software}% -% -\begin{itemize}% -\item Programmers don't just write programs, they \emph{develop software}.% -\item<2-> A good share of programmers usually spend only about 50\%~of their time with programming\cite{T2019MOSWBFDHOT2TMOSS,AS2019DS2OSRP}.% -\item<3-> Other studies even suggest that less than 20\%~of the working time spent with coding, maybe with another 15\%~of bug fixing\cite{MAGTOC2024EHFAP}.% -% -\item<4-> Of course, we will focus on programming in this class on, well, programming.% -% -\item<5-> But we will at discuss several issues beyond that, things that belong into your tool belt, that can make you a \emph{good} programmer.% -% -\item<6-> Our course is on developing good software with \python.% -\end{itemize}% -\end{frame}% -% -% -\section{Why \python?}% -% -\begin{frame}[t]% -\frametitle{Why \python?}% -\begin{enumerate}% -\item Because \python\ is a very widely-used programming language\cite{CBST2024LOHPPTDDSAMLA,B2023G2GLS}.% -\item<3-> \python\ is intensely used in AI\cite{RN2022AIAMA}, ML\cite{SSBD2014UMLFTTA}, and Data Science\cite{G2019DSFSFPWP} as well as optimization, which are among the most important areas of future technology.% -\item<4-> There exists a very large set of powerful libraries supporting both research and application development in these fields, including \numpy\cite{HMvdWGVCWTBSKPHvKBHFdRWPGMSRWAGO2020APWN,DBvR2024ITN,J2018NPSCADSAWNSAM}, \pandas\cite{B2012DPWP,L2024PW}, \scikitlearn\cite{PVGMTGBPWDVPCBPD2011SMLIP,RLM2022MLWPAS}, \scipy\cite{VGOHRCBPWBvdWBWMMNJKLCPFMVLPCHQHARPvMS2020SFAFSCIP,J2018NPSCADSAWNSAM}, \tensorflow\cite{ABCCDDDGIIKLMMMSTVWWYZ2016TASFLSML,L2023TDDBTADMLMWT}, \pytorch\cite{PGMLBCKLGADKYDRTCSFBC2019PAISHPDLL,RLM2022MLWPAS}, \matplotlib\cite{H2007MA2GE,P2021HOMLPAVWP,J2018NPSCADSAWNSAM}, \simpy\cite{Z2024DESIEWS}, and \moptipy\cite{WW2023RSDEWASSAA}, just to name a few.% -% -\item<5-> \python\ is very easy to learn\cite{GPBS2006WCTIPIHSUP,VR1999CPFERPASEFTPOT}. % -It has a simple and clean syntax and enforces a readable structure of programs. % -\python\ has expressive built-in types likes lists, tuples, and dictionaries. % -\end{enumerate}% -% -\locateGraphic[B2023G2GLS]{2}{width=0.65\paperwidth}{graphics/languagesByGithubPushes/languagesByGithubPushes}{0.175}{0.26}% -\end{frame}% -% -% -\begin{frame}[t]% -\frametitle{\python\ is an interpreted language}% -\begin{itemize}% -\item Most programming languages require code to be compiled.% -\item<8-> \python\ is interpreted.% -\item<12-> So there are fewer steps in the build process.% -\end{itemize}% -\locateGraphic{2}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_01}{0.125}{0.35}% -\locateGraphic{3}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_02}{0.125}{0.35}% -\locateGraphic{4}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_03}{0.125}{0.35}% -\locateGraphic{5}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_04}{0.125}{0.35}% -\locateGraphic{6}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_05}{0.125}{0.35}% -\locateGraphic{7}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_06}{0.125}{0.35}% -\locateGraphic{8}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_07}{0.125}{0.35}% -\locateGraphic{9}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_08}{0.125}{0.35}% -\locateGraphic{10}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_09}{0.125}{0.35}% -\locateGraphic{11-}{width=0.75\paperwidth}{graphics/pythonIsInterpreted/pythonIsInterpreted_10}{0.125}{0.35}% -\end{frame}% -% -\section{Summary}% -% -\begin{frame}\frametitle{Summary}% -% -\begin{itemize}% -\item Programming means to write the source code of computer programs.% -\item<2-> We can use a programming language like \python\ for that.% -\item<3-> To be able to create good, useful, and maintainable programs, it is not enough to just learn a programming language.% -\item<4-> You also have to understand the tools surrounding it, the best practices, the coding guidelines, how to test programs, how to document programs, and so on.% -\item<5-> You need a good understanding of the most important components of \emph{software development}. -\item<6-> I will try to teach you programming together with several of such aspects.% -\item<7-> We will use the \python\ programming language\uncover<8->{, because it is easy to learn\uncover<9->{, widely used\uncover<10->{, has a rich environment of useful packages\uncover<11->{, and has a simple build process.}}}}% -\end{itemize}% -\end{frame}% -% -\endPresentation% -\end{document}%% -\endinput% -% diff --git a/slides/01_introduction/graphics/languagesByGithubPushes/languagesByGithubPushes.pdf b/slides/01_introduction/graphics/languagesByGithubPushes/languagesByGithubPushes.pdf deleted file mode 100644 index 5555130..0000000 Binary files a/slides/01_introduction/graphics/languagesByGithubPushes/languagesByGithubPushes.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/languagesByGithubPushes/languagesByGithubPushes.py b/slides/01_introduction/graphics/languagesByGithubPushes/languagesByGithubPushes.py deleted file mode 100644 index a067504..0000000 --- a/slides/01_introduction/graphics/languagesByGithubPushes/languagesByGithubPushes.py +++ /dev/null @@ -1,206 +0,0 @@ -"""Get the programming language popularity data and plot a diagram.""" -import json -from collections import Counter -from math import ceil -from typing import Final - -from matplotlib.artist import Artist # type: ignore -from matplotlib.axes import Axes # type: ignore -from matplotlib.lines import Line2D # type: ignore -from moptipy.evaluation.axis_ranger import AxisRanger -from moptipy.utils.plot_defaults import ( - COLOR_BLACK, - GRID_COLOR, - create_line_style, - distinct_colors, -) -from moptipy.utils.plot_utils import ( - create_figure, - get_axes, - label_box, - save_figure, -) -from pycommons.io.console import logger -from pycommons.io.path import Path, file_path -from pycommons.io.temp import temp_dir -from pycommons.processes.shell import STREAM_FORWARD, Command - - -def time(year: int, quart: int) -> float: - """ - Translate a year/quarter combination to a single time float. - - :param year: the year - :param quart: the quarter - :return: the time float - """ - return year + quart / 5 - - -#: The GitHut URL -GITHUT_URL: Final[str] = "https://github.com/madnight/githut/" - - -def get_data() -> tuple[tuple[ - str, tuple[float, ...], tuple[float, ...]], ...]: - """ - Get the data regarding the programming language popularity. - - :return: the extracted data - """ - logger("Downloading the dataset from GitHut 2.0.") - with temp_dir() as td: - Command(command=("git", "-C", td, "clone", "--depth", "1", - GITHUT_URL, td), - working_dir=td, - timeout=200, - stdin=None, - stdout=STREAM_FORWARD, - stderr=STREAM_FORWARD).execute(True) - return load_data(td.resolve_inside("src/data/gh-push-event.json")) - - -def load_data(file: str) -> tuple[tuple[ - str, tuple[float, ...], tuple[float, ...]], ...]: - """ - Loading the data from a file. - - :param file: the file - :return: the data, i.e., tuples of programming language name, date, and - share fractions - """ - logger("We got all the data, now we parse it in a very crude way") - raw_data: Final[list[tuple[float, int, str]]] = [ - (time(int(res["year"]), int(res["quarter"])), - int(res["count"]), str.strip(res["name"])) - for res in json.loads(file_path(file).read_all_str())] - logger("We got the data parsed, now we process it.") - dates: Final[tuple[float, ...]] = tuple(sorted({ - entry[0] for entry in raw_data})) - per_date: Final[dict[float, list[tuple[int, str]]]] = { - d: sorted((entry[1], entry[2]) for entry in raw_data if entry[0] == d) - for d in dates} - - # Decide which programming languages to plot - min_count: int = 3 - while True: - logger(f"Computing most popular languages " - f"using {min_count}-best per quarter.") - keeper: Counter[str] = Counter() - for row in per_date.values(): - add: int = 1 - for i in range(-min_count, -1, 1): - keeper[row[i][1]] += add - add = add + add + 1 - charts: list[str] = sorted( - keeper.keys(), key=keeper.__getitem__, reverse=True) - if ("Python" in charts) and (list.__len__(charts) > 11): - break - min_count += 1 - - charts.remove("Python") - charts.insert(0, "Python") # Python comes first - while list.__len__(charts) > 12: - del charts[-1] - logger(f"Selected the following languages: {charts!r}.") - - # Get the normalization factor for the data per day - day_sum: Final[Counter[float]] = Counter() - for date, row in per_date.items(): - for v, _ in row: - day_sum[date] += v - - logger("Now selecting the data to plot.") - # get the data sequences - data: dict[str, tuple[list[float], list[float]]] = {} - for language in charts: - x: list[float] = [] - y: list[float] = [] - for date, row in per_date.items(): - value: float | None = None - for v, lang in row: - if lang == language: - value = v / day_sum[date] - break - if value is None: - if list.__len__(x) > 0: - x.append(date) - y.append(0) - else: - x.append(date) - y.append(value) - data[language] = x, y - - logger("Finished selecting data.") - return tuple((lang, tuple(data[lang][0]), tuple( - data[lang][1])) for lang in charts) - - -def plot_data(data: tuple[tuple[str, tuple[ - float, ...], tuple[float, ...]], ...], - dest_dir: str, dest_name: str) -> Path: - """ - Plot the data. - - :param data: the data to plot - :param dest_dir: the destination directory - :param dest_name: the name of the file - :return: the path to the file - """ - logger("Now creating figure.") - figure: Final = create_figure(6) - axes: Final[Axes] = get_axes(figure) - - n: Final[int] = tuple.__len__(data) - colors = distinct_colors(n) - y: AxisRanger = AxisRanger(chosen_min=0, use_data_max=True) - handles: list[Artist] = [] - for i in range(n - 1, -1, -1): - row = data[i] - logger(f"Plotting data {row[0]!r}.") - yd = row[2] - y.register_value(0.04 + int(ceil(10 * max(yd) * 1)) / 10) - style = create_line_style() - style["label"] = row[0] - style["color"] = colors[i] - style["linewidth"] = 2 if i > 0 else 3 - axes.plot(row[1], yd, **style) - style["xdata"] = row[1] - style["ydata"] = yd - handles.insert(0, Line2D(**style)) - - logger("Adding labels, legends, and grid, setting axes ranges.") - y.apply(axes, "y") - axes.grid(axis="x", color=GRID_COLOR, linewidth=0.5) - axes.grid(axis="y", color=GRID_COLOR, linewidth=0.5) - - axes.legend(loc="upper right", - ncol=2, - handles=handles, - labelcolor=[art.color if hasattr(art, "color") - else COLOR_BLACK for art in handles], - fontsize=9) - - label_box(axes, "Fraction of GitHub Pushes", 0.35, 0.97, 13) - label_box(axes, "Year", 0.99, 0.005, 10) - label_box(axes, "Fraction of GitHub Pushes", 0.005, 0.99, 10, True) - label_box(axes, f"Source: GitHut 2.0, {GITHUT_URL}", 0.01, 0.0025, 9) - - logger("Now saving figure.") - path = save_figure(figure, dest_name, dest_dir, "pdf")[0] - logger(f"Saved figure to {path!r}.") - return path - - -def main() -> None: - """Do the work.""" - logger("Starting up.") - file: Final[Path] = file_path(__file__) - name = file.basename()[:-3] - plot_data(get_data(), file.up(1), name) - logger("All done.") - - -# Execute the program -if __name__ == "__main__": - main() diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_01.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_01.pdf deleted file mode 100644 index 5e02c41..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_01.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_01.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_01.svg deleted file mode 100644 index 3f34157..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_01.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingProgramming in a compiledlanguage like C \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_02.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_02.pdf deleted file mode 100644 index 52ad261..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_02.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_02.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_02.svg deleted file mode 100644 index 8ba2f49..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_02.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingProgramSourceCodeProgramming in a compiledlanguage like C \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_03.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_03.pdf deleted file mode 100644 index d1871a2..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_03.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_03.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_03.svg deleted file mode 100644 index 598c64c..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_03.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingCompilationProgramSourceCodeProgramming in a compiledlanguage like C \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_04.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_04.pdf deleted file mode 100644 index d29adf1..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_04.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_04.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_04.svg deleted file mode 100644 index 12497c4..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_04.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingCompilationProgramSourceCodeProgramMachineCodeMachine-SpecificProgramming in a compiledlanguage like C \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_05.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_05.pdf deleted file mode 100644 index 33c16f7..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_05.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_05.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_05.svg deleted file mode 100644 index ce9355b..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_05.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingCompilationExecutionProgramSourceCodeProgramMachineCodeMachine-SpecificProgramming in a compiledlanguage like C \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_06.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_06.pdf deleted file mode 100644 index 154a9f3..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_06.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_06.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_06.svg deleted file mode 100644 index 2e6b5a1..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_06.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingCompilationExecutionProgramSourceCodeProgramMachineCodeRunningProcessMachine-SpecificProgramming in a compiledlanguage like C \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_07.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_07.pdf deleted file mode 100644 index fff4978..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_07.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_07.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_07.svg deleted file mode 100644 index 87f03a4..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_07.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingProgrammingCompilationExecutionProgramSourceCodeProgramMachineCodeRunningProcessMachine-SpecificProgramming in a compiledlanguage like CProgramming in Python \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_08.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_08.pdf deleted file mode 100644 index 376b132..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_08.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_08.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_08.svg deleted file mode 100644 index f9667fa..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_08.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingProgrammingCompilationExecutionProgramSourceCodeProgramMachineCodeRunningProcessPythonSourceCodeMachine-SpecificProgramming in a compiledlanguage like CProgramming in Python \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_09.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_09.pdf deleted file mode 100644 index 0606a1a..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_09.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_09.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_09.svg deleted file mode 100644 index 56a480a..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_09.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingProgrammingCompilationExecutionProgramSourceCodeProgramMachineCodeRunningProcessPythonSourceCodeInterpretationMachine-SpecificProgramming in a compiledlanguage like CProgramming in Python \ No newline at end of file diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_10.pdf b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_10.pdf deleted file mode 100644 index 14846b8..0000000 Binary files a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_10.pdf and /dev/null differ diff --git a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_10.svg b/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_10.svg deleted file mode 100644 index bfda082..0000000 --- a/slides/01_introduction/graphics/pythonIsInterpreted/pythonIsInterpreted_10.svg +++ /dev/null @@ -1 +0,0 @@ -ProgrammingProgrammingCompilationExecutionProgramSourceCodeProgramMachineCodeRunningProcessPythonSourceCodeInterpretationPythonInterpreterMachine-SpecificProgramming in a compiledlanguage like CProgramming in Python \ No newline at end of file diff --git a/slides/02_getting_started/02_getting_started.tex b/slides/02_getting_started/02_getting_started.tex deleted file mode 100644 index 9313c17..0000000 --- a/slides/02_getting_started/02_getting_started.tex +++ /dev/null @@ -1,289 +0,0 @@ -\pdfminorversion=7% -\documentclass[aspectratio=169,mathserif,notheorems]{beamer}% -% -\xdef\bookbaseDir{../../bookbase}% -\xdef\sharedDir{../../shared}% -\RequirePackage{\bookbaseDir/styles/slides}% -\RequirePackage{\sharedDir/styles/styles}% -% -% -\subtitle{Getting Started}% -% -\begin{document}% -\startPresentation% -% -\section{Introduction}% -% -\begin{frame}% -\frametitle{Introduction}% -\begin{itemize}% -\item This will be a practical course, so we should get started with practical things right away.% -\item<2-> In order to do practical things, we need to have all the necessary software on our computer.% -\item<3-> Here we discuss what software you need and how you can install it.% -\item<4-> We will also discuss how to write a simple program in a \python\ editor and how we can run \python\ programs.% -\item<5-> Indeed, we provide a big load of example programs in this course, based on which we will discuss the different aspects of \python\ programming.% -\item<6-> So, finally, we will also check how you can download these example programs.% -\end{itemize}% -\end{frame}% -% -\begin{frame}% -\frametitle{Software Needed for \python\ Software Development}% -\begin{itemize}% -\item What software is necessary to do \python\ programming?\uncover<2->{ \python.\uncover<3->{ We will discuss how to install \python.}}% -\item<4-> With the programming language \python\ alone, you cannot really do much \emph{conveniently}.% -\item<5-> You need a nice editor in which you can write the programs\uncover<6->{, where you can also directly execute and test your programs\uncover<7->{, where you can work with a work with a version control system like \git\cite{S2023LG,T2024BGAGVCPMATFTND}.}}% -\item<8-> Such called an Integrated Development Environment~(IDE).\uncover<9->{We will use the \pycharm\ IDE\cite{VHN2023HOADWP,Y2022PPADT}.\uncover<10->{ Se we will discuss how you can install it.}}% -\item<11-> As operating system, I strongly recommend using \linux\cite{T1999TLE,B2022ELATCL,H2022LML} for programming, work, and research.\uncover<12->{ I am using \ubuntu\ \linux\cite{CN2020ULB}.}% -% -\item<13-> I will provide examples and instructions for both \ubuntu\ and \microsoftWindows\cite{B2023W1IO}.% -\end{itemize}% -\end{frame}% -% -\section{Installing \python}% -% -\begin{frame}% -\frametitle{Installing \python}% -\begin{itemize}% -\item There are two major versions of \python: \python~2 and \python~3.% -\item<2-> \alert{We focus entirely on \python~3.}% -\item<3-> We assume that you have installed \pythonWithVersion\ or newer. -\item<4-> We here provide some brief setup instructions. -\item<5->More help can be found at the following resources\uncover<6->{:% -% -\begin{enumerate}% -\item the official \python\ setup and usage page~\url{https://docs.python.org/3/using}\cite{PSF:P3D:PSAU},% -\item the \python\ Downloads at~\url{https://www.python.org/downloads}, and% -\item the \python~3 Installation \& Setup Guide at~\url{https://realpython.com/installing-python}% -\end{enumerate}}% -\end{itemize}% -\end{frame}% -% -\begin{frame}[fragile,t] -\frametitle{Installing \python\ under \ubuntu\ \linux}% -\begin{itemize}% -\item Under \ubuntu\ \linux, \python\ will usually installed by default.% -\end{itemize}% -\locate{2}{\includegraphics[width=0.65\paperwidth]{graphics/pythonUnderUbuntu/ubuntuTerminalPythonVersion}}{0.05}{0.35}% -\locate{2}{\parbox{0.2\paperwidth}{to open a \linux\ terminal, press \ubuntuTerminal}}{0.73}{0.4}% -\end{frame} -% -\begin{frame}[fragile,t] -\frametitle{Installing \python\ under \microsoftWindows}% -\uncover<-1>{% -\begin{itemize}% -\item Under \microsoftWindows, \python\ might not be installed by default.% -\end{itemize}}% -% -\locate{2}{\tightbox{\includegraphics[width=0.65\paperwidth]{graphics/installingPythonWindows/installingPythonWindows01openTerminal}}}{0.05}{0.15}% -\locate{2}{\parbox{0.2\paperwidth}{to open a \microsoftWindows\ terminal, \windowsTerminal}}{0.73}{0.3}% -\locate{3}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPythonWindows/installingPythonWindows02pythonVersion}}}{0.15}{0.15}% -\locate{4}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPythonWindows/installingPythonWindows03python}}}{0.15}{0.15}% -\locate{5}{\tightbox{\includegraphics[width=0.8\paperwidth]{graphics/installingPythonWindows/installingPythonWindows04installGet}}}{0.1}{0.15}% -\locate{6}{\tightbox{\includegraphics[width=0.8\paperwidth]{graphics/installingPythonWindows/installingPythonWindows05downloading}}}{0.1}{0.15}% -\locate{7}{\tightbox{\includegraphics[width=0.8\paperwidth]{graphics/installingPythonWindows/installingPythonWindows06finished}}}{0.1}{0.15}% -\locate{8}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPythonWindows/installingPythonWindows07pythonVersion}}}{0.15}{0.15}% -\end{frame} -% -\section{Installing \pycharm}% -% -\begin{frame}% -\frametitle{Installing \pycharm}% -\begin{itemize}% -\item We now install a nice IDE for \python\ software development:~\pycharm.% -\item<2-> Its community edition is freely available.% -\item<3-> The installation guide for \pycharm\ can be found at \url{https://www.jetbrains.com/help/pycharm/installation-guide.html}.% -\end{itemize}% -\end{frame}% -% -\begin{frame}[fragile,t] -\frametitle{Installing \pycharm\ under \ubuntu\ \linux}% -\begin{itemize}% -\item Under \ubuntu\ \linux, \pycharm\ can be installed as snap\cite{C2025SD,J2024PCPCE}.% -\end{itemize}% -\locate{2}{\includegraphics[width=0.65\paperwidth]{graphics/installingPyCharmUbuntu/installingPyCharmUbuntu01snapInstall}}{0.05}{0.35}% -\locate{2}{\parbox{0.2\paperwidth}{to open a \linux\ terminal, press \ubuntuTerminal}}{0.73}{0.4}% -\locate{3}{\includegraphics[width=0.75\paperwidth]{graphics/installingPyCharmUbuntu/installingPyCharmUbuntu02sudo}}{0.125}{0.35}% -\locate{4}{\includegraphics[width=0.75\paperwidth]{graphics/installingPyCharmUbuntu/installingPyCharmUbuntu03snapInstall}}{0.125}{0.35}% -\locate{5}{\includegraphics[width=0.75\paperwidth]{graphics/installingPyCharmUbuntu/installingPyCharmUbuntu05snapInstallFinished}}{0.125}{0.35}% -\locate{6}{\tightbox{\includegraphics[width=0.55\paperwidth]{graphics/installingPyCharmUbuntu/installingPyCharmUbuntu06launcher}}}{0.125}{0.35}% -\locate{6}{\parbox{0.2\paperwidth}{Open the launcher by pressing \OSwin\ and type in \bashil{pycharm}}}{0.73}{0.3}%% -\locate{7}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmUbuntu/installingPyCharmUbuntu07welcome}}}{0.25}{0.25}% -\locate{8}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmUbuntu/installingPyCharmUbuntu08pycharm}}}{0.25}{0.23}% -% -\end{frame} -% -\begin{frame}[fragile,t] -\frametitle{Installing \pycharm\ under \ubuntu\ \linux}% -\begin{itemize}% -\item Under \microsoftWindows, you need to download and install the \pycharm\ Community Edition installation executable from \url{https://www.jetbrains.com/pycharm/download}.% -\end{itemize}% -% -\locate{2}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows01download}}}{0.15}{0.29}% -\locate{3}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows02download}}}{0.15}{0.29}% -\locate{4}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows03download}}}{0.15}{0.29}% -\locate{5}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows04download}}}{0.15}{0.29}% -\locate{6}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows05runInstaller}}}{0.15}{0.29}% -\locate{7}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows06runInstaller}}}{0.15}{0.29}% -\locate{8}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows07runInstaller}}}{0.15}{0.29}% -\locate{9}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows08runInstaller}}}{0.25}{0.27}% -\locate{10}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows09installation}}}{0.25}{0.26}% -\locate{11}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows10installation}}}{0.25}{0.25}% -\locate{12}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows11installation}}}{0.25}{0.25}% -\locate{13}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows12installation}}}{0.25}{0.25}% -\locate{14}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows13installation}}}{0.25}{0.25}% -\locate{15}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows14installation}}}{0.25}{0.27}% -\locate{16}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows15running}}}{0.25}{0.263}% -\locate{17}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows16running}}}{0.25}{0.263}% -\locate{18}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows17running}}}{0.25}{0.263}% -\locate{19}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/installingPyCharmWindows/installingPyCharmWindows18running}}}{0.25}{0.25}% -% -\end{frame} -% -\section{Our First Program}% -% -\begin{frame}[t]% -\frametitle{Our First Program}% -\begin{itemize}% -\item Let's create a program in \pycharm.% -\end{itemize}% -% -\locate{2}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/firstProgram/firstProgram01createPyCharmProject}}}{0.25}{0.259}% -\locate{3}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/firstProgram/firstProgram02createPyCharmProject}}}{0.25}{0.259}% -\locate{4}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/firstProgram/firstProgram03PyCharmProjectCreated}}}{0.15}{0.259}% -\locate{5}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/firstProgram/firstProgram04createPythonFile}}}{0.25}{0.259}% -\locate{6}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/firstProgram/firstProgram05createPythonFile}}}{0.15}{0.259}% -\locate{7}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/firstProgram/firstProgram06pythonFileCreated}}}{0.15}{0.259}% -\locate{8}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/firstProgram/firstProgram07writeHelloWorld}}}{0.15}{0.259}% -\locate{9}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/firstProgram/firstProgram08runProgram}}}{0.25}{0.259}% -\locate{10}{\tightbox{\includegraphics[width=0.7\paperwidth]{graphics/firstProgram/firstProgram09programResult}}}{0.15}{0.259}% -% -% -\end{frame}% -% -% -\section{\python\ in the Terminal}% -% -\begin{frame}[fragile] -\frametitle{Ways to Execute a \python\ Program}% -\begin{itemize}% -% -\item There are at least four ways to run a \python\ program:\uncover<2->{% -\begin{enumerate}% -\item We can enter the program into a \python\ file in the \pycharm\ IDE and then run it from there.% -\item<3-> We can write the program in a normal text editor and store it in a file~\textil{pgogramName.py}.\uncover<4->{ % -Then we can open a terminal, enter the directory, and type~\bashil{python3 programName.py} and hit~\keys{\enter}.\uncover<5->{ % -This executes the program in the terminal.}}% -% -\item<6-> We can open the \python\ interpreter console in \pycharm\ and enter and execute our code line-by-line.% -% -\item<7-> We can use the \python\ console inside a terminal.\uncover<8->{ % -We can then enter separate \python\ instructions and run them there.}% -\end{enumerate}}% -% -\item<8-> We already did option~\enumerateItem{1}, now let's try the others.% -% -\end{itemize}% -\end{frame} -% -\begin{frame}[fragile,t] -\frametitle{Execute a python Program in the Terminal} -\begin{itemize}% -\item Open a terminal by pressing \ubuntuTerminal\ under \ubuntu\ \linux; under \microsoftWindows\ \windowsTerminal.% -\end{itemize}% -% -\locate{2}{\includegraphics[width=0.8\paperwidth]{graphics/pythonInTheTerminal/terminalPython1cd}}{0.1}{0.4}% -\locate{3}{\includegraphics[width=0.8\paperwidth]{graphics/pythonInTheTerminal/terminalPython2python}}{0.1}{0.4}% -\locate{4}{\includegraphics[width=0.8\paperwidth]{graphics/pythonInTheTerminal/terminalPython3result}}{0.1}{0.4}% -% -\gitPythonAndOutput{6}{\programmingWithPythonCodeRepo}{veryFirstProject}{very_first_program.py}{--args format}{0.05}{0.45}{0.9}{0.8}% -% -\end{frame} -% -\begin{frame}[t]% -\frametitle{Entering Commands in the \python\ Console inside \pycharm}% -% -\begin{itemize}% -\item We can also directly enter programs into the \pycharm\ \python\ console (press \menu{\pycharmConsole}) and execute them step-by-step.% -\item<2-> This does not make sense if we want to reuse our programs later.% -\end{itemize}% -% -\locate{3}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/pythonInTheTerminal/pycharmConsole1consoleButton}}}{0.25}{0.35}% -\locate{4}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/pythonInTheTerminal/pycharmConsole2consoleOpen}}}{0.25}{0.35}% -\locate{5}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/pythonInTheTerminal/pycharmConsole3writingCode}}}{0.25}{0.35}% -\locate{6}{\tightbox{\includegraphics[width=0.5\paperwidth]{graphics/pythonInTheTerminal/pycharmConsole4codeOutput}}}{0.25}{0.35}% -% -\end{frame}% -% -\begin{frame}[t]% -\frametitle{Entering Commands in the \python\ Console in a Terminal}% -\begin{itemize}% -\item {\dots}or we can open a \python\ console in a terminal.% -\end{itemize}% -% -\locate{2}{\includegraphics[width=0.7\paperwidth]{graphics/pythonInTheTerminal/terminalConsole1python}}{0.15}{0.35}% -\locate{3}{\includegraphics[width=0.7\paperwidth]{graphics/pythonInTheTerminal/terminalConsole2pythonRunning}}{0.15}{0.35}% -\locate{4}{\includegraphics[width=0.7\paperwidth]{graphics/pythonInTheTerminal/terminalConsole3writingCode}}{0.15}{0.35}% -\locate{5}{\includegraphics[width=0.7\paperwidth]{graphics/pythonInTheTerminal/terminalConsole5exit}}{0.15}{0.35}% -\locate{6}{\includegraphics[width=0.7\paperwidth]{graphics/pythonInTheTerminal/terminalConsole6left}}{0.15}{0.35}% -\end{frame}% -% -\begin{frame}[fragile] -\frametitle{Ways to Execute a \python\ Program}% -\begin{itemize}% -% -\item There are at least four ways to run a \python\ program:% -\begin{enumerate}% -\item We can enter the program into a \python\ file in the \pycharm\ IDE and then run it from there.% -\item We can write the program in a normal text editor and store it in a file~\textil{pgogramName.py}. % -Then we can open a terminal, enter the directory, and type~\bashil{python3 programName.py} and hit~\keys{\enter}. % -This executes the program in the terminal.% -% -\item We can open the \python\ interpreter console in \pycharm\ and enter and execute our code line-by-line.% -% -\item We can use the \python\ console inside a terminal. % -We can then enter separate \python\ instructions and run them there.% -\end{enumerate}% -% -\bestPractice{runningProgram}{The only proper way to run a \python\ application in a productive scenario is in the terminal.}% -\end{itemize}% -\end{frame} -% -% -\section{Obtaining the Examples}% -% -\begin{frame}[t]% -\frametitle{Downloading the Examples}% -\begin{itemize}% -\item This course is practice-centered, so it comes with lots of examples. -\item<2-> You can download them from \expandafter\url{\programmingWithPythonCodeRepo/archive/refs/heads/main.zip}.% -\end{itemize}% -% -\locate{3}{\tightbox{\includegraphics[width=0.45\paperwidth]{graphics/examples/downloadExamples}}}{0.275}{0.35}% -\end{frame}% -% -\begin{frame}[t]% -\frametitle{Clone Repository in \pycharm}% -\begin{itemize}% -\item You can also clone the repository \expandafter\url{\programmingWithPythonCodeRepo} in \pycharm.% -\end{itemize}% -% -\locate{2}{\tightbox{\includegraphics[width=0.45\paperwidth]{graphics/examples/clone01welcomeToPycharm}}}{0.275}{0.263}% -\locate{3}{\tightbox{\includegraphics[width=0.45\paperwidth]{graphics/examples/clone02selectRepoAndDestination}}}{0.275}{0.263}% -\locate{4}{\tightbox{\includegraphics[width=0.45\paperwidth]{graphics/examples/clone03cloning}}}{0.275}{0.263}% -\locate{5}{\tightbox{\includegraphics[width=0.65\paperwidth]{graphics/examples/clone04trustProject}}}{0.175}{0.263}% -\locate{6}{\tightbox{\includegraphics[width=0.65\paperwidth]{graphics/examples/clone05finished}}}{0.175}{0.263}% -% -\end{frame}% -% -\section{Summary}% -% -\begin{frame}\frametitle{Summary}% -\begin{itemize}% -\item The optimization algorithms we consider in this lecture are \alert<1>{randomized}.% -\end{itemize}% -\end{frame}% -% -\endPresentation% -\end{document}%% -\endinput% -% diff --git a/slides/02_getting_started/graphics/examples/clone01welcomeToPycharm.png b/slides/02_getting_started/graphics/examples/clone01welcomeToPycharm.png deleted file mode 100644 index ed6083f..0000000 Binary files a/slides/02_getting_started/graphics/examples/clone01welcomeToPycharm.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/examples/clone02selectRepoAndDestination.png b/slides/02_getting_started/graphics/examples/clone02selectRepoAndDestination.png deleted file mode 100644 index a62690c..0000000 Binary files a/slides/02_getting_started/graphics/examples/clone02selectRepoAndDestination.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/examples/clone03cloning.png b/slides/02_getting_started/graphics/examples/clone03cloning.png deleted file mode 100644 index 5dd7a5e..0000000 Binary files a/slides/02_getting_started/graphics/examples/clone03cloning.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/examples/clone04trustProject.png b/slides/02_getting_started/graphics/examples/clone04trustProject.png deleted file mode 100644 index 0ed481e..0000000 Binary files a/slides/02_getting_started/graphics/examples/clone04trustProject.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/examples/clone05finished.png b/slides/02_getting_started/graphics/examples/clone05finished.png deleted file mode 100644 index 1ec3f84..0000000 Binary files a/slides/02_getting_started/graphics/examples/clone05finished.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/examples/downloadExamples.pdf b/slides/02_getting_started/graphics/examples/downloadExamples.pdf deleted file mode 100644 index a987ef6..0000000 Binary files a/slides/02_getting_started/graphics/examples/downloadExamples.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/examples/downloadExamples.svg b/slides/02_getting_started/graphics/examples/downloadExamples.svg deleted file mode 100644 index d7b8ace..0000000 --- a/slides/02_getting_started/graphics/examples/downloadExamples.svg +++ /dev/null @@ -1,2 +0,0 @@ - -thomasWeise/programmingWithPythonCodePublic1BranchTagsGo to fileGo to filethomasWeiseimprovementse9524f1 · 12 hours ago115 Commits00_veryFirstProjectchanged directory names back3 months ago01_variablesimproved output3 months ago02_collectionsreplaced "example for" with "example of"2 days ago03_conditionalsreplaced "example for" with "example of"2 days ago04_loopsfixed location for function examples2 months ago05_functionsfixed examplelast month06_exceptionsimprovements12 hours agoscriptshopefully improved outputlast month.gitignorefirst example program added5 months agoLICENSEInitial commit5 months agoREADME.mdfixed link to our school2 months agomake_venv.shimproved examples for exceptions5 days agorequirements-dev.txtUpdated and Unified Scripts2 months agoAboutThe program code of the examples of thebook "Programming with Python"ReadmeGPL-3.0 licenseActivity0stars1watching0forksReport repositoryReleasesNo releases publishedPackagesNo packages publishedLanguagesPython78.5%Shell21.5%CodeIssuesPull requestsActionsProjectsSecurityInsights mainREADMEGPL-3.0 licenseClonehttps://github.com/thomasWeise/programmingWithPgithub.com/thomasWeise/programmingWithPythonCode/https://github.com/thomasWeise/programmingWithPythonCode/archive/refs/heads/main.zipClone using the web URL.HTTPSGitHub CLIDownload ZIPCode diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram01createPyCharmProject.png b/slides/02_getting_started/graphics/firstProgram/firstProgram01createPyCharmProject.png deleted file mode 100644 index aeebe0e..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram01createPyCharmProject.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram02createPyCharmProject.png b/slides/02_getting_started/graphics/firstProgram/firstProgram02createPyCharmProject.png deleted file mode 100644 index ee1ab9f..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram02createPyCharmProject.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram03PyCharmProjectCreated.png b/slides/02_getting_started/graphics/firstProgram/firstProgram03PyCharmProjectCreated.png deleted file mode 100644 index d3d0f35..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram03PyCharmProjectCreated.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram04createPythonFile.png b/slides/02_getting_started/graphics/firstProgram/firstProgram04createPythonFile.png deleted file mode 100644 index 529f8ed..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram04createPythonFile.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram05createPythonFile.png b/slides/02_getting_started/graphics/firstProgram/firstProgram05createPythonFile.png deleted file mode 100644 index fce6d99..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram05createPythonFile.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram06pythonFileCreated.png b/slides/02_getting_started/graphics/firstProgram/firstProgram06pythonFileCreated.png deleted file mode 100644 index bfae7f8..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram06pythonFileCreated.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram07writeHelloWorld.png b/slides/02_getting_started/graphics/firstProgram/firstProgram07writeHelloWorld.png deleted file mode 100644 index a6c886d..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram07writeHelloWorld.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram08runProgram.png b/slides/02_getting_started/graphics/firstProgram/firstProgram08runProgram.png deleted file mode 100644 index 07cacc8..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram08runProgram.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/firstProgram/firstProgram09programResult.png b/slides/02_getting_started/graphics/firstProgram/firstProgram09programResult.png deleted file mode 100644 index ce4788b..0000000 Binary files a/slides/02_getting_started/graphics/firstProgram/firstProgram09programResult.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu01snapInstall.pdf b/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu01snapInstall.pdf deleted file mode 100644 index f696fc5..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu01snapInstall.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu02sudo.pdf b/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu02sudo.pdf deleted file mode 100644 index 94d8477..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu02sudo.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu03snapInstall.pdf b/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu03snapInstall.pdf deleted file mode 100644 index eabd2e7..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu03snapInstall.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu04snapInstall.pdf b/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu04snapInstall.pdf deleted file mode 100644 index 530d0da..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu04snapInstall.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu05snapInstallFinished.pdf b/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu05snapInstallFinished.pdf deleted file mode 100644 index 865d2b2..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu05snapInstallFinished.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu06launcher.png b/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu06launcher.png deleted file mode 100644 index be2b6ac..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu06launcher.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu07welcome.png b/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu07welcome.png deleted file mode 100644 index 555c94d..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu07welcome.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu08pycharm.png b/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu08pycharm.png deleted file mode 100644 index 983eb15..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmUbuntu/installingPyCharmUbuntu08pycharm.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows.tex b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows.tex deleted file mode 100644 index b4aef12..0000000 --- a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows.tex +++ /dev/null @@ -1,163 +0,0 @@ -\hsection{Installing PyCharm under Microsoft Windows}% -\label{sec:installingPyCharmWindows}% -% -\begin{figure}% -\centering% -% -\subfloat[][% -The download website \url{https://www.jetbrains.com/pycharm/download} for \pycharm.% -\label{fig:installingPyCharmWindows01download}% -]{\tightbox{\includegraphics[width=0.47\linewidth]{\currentDir/installingPyCharmWindows01download}}}% -% -\hfill% -% -\subfloat[][% -Downloading the \pycharm\ Community Edition.% -\label{fig:installingPyCharmWindows02download}% -]{\tightbox{\includegraphics[width=0.47\linewidth]{\currentDir/installingPyCharmWindows02download}}}% -% -\\[10pt]% -% -\subfloat[][% -Selecting the normal \windows\ installer for the \pycharm\ Community Edition.% -\label{fig:installingPyCharmWindows03download}% -]{\tightbox{\includegraphics[width=0.47\linewidth]{\currentDir/installingPyCharmWindows03download}}}% -% -\hfill% -% -\subfloat[][% -The download is starting.% -\label{fig:installingPyCharmWindows04download}% -]{\tightbox{\includegraphics[width=0.47\linewidth]{\currentDir/installingPyCharmWindows04download}}}% -% -\caption{The installation steps of \pycharm\ under \windows.}% -\label{fig:installingPyCharmWindowsA}% -% -\end{figure}% -\begin{figure}% -\ContinuedFloat% -% -\subfloat[][% -The download is completed. We click \keys{Open file}.% -\label{fig:installingPyCharmWindows05runInstaller}% -]{\tightbox{\includegraphics[width=0.47\linewidth]{\currentDir/installingPyCharmWindows05runInstaller}}}% -% -\hfill% -% -\subfloat[][% -The installer is starting.% -\label{fig:installingPyCharmWindows06runInstaller}% -]{\tightbox{\includegraphics[width=0.47\linewidth]{\currentDir/installingPyCharmWindows06runInstaller}}}% -% -\\[10pt]% -% -\subfloat[][% -The installer is starting.% -\label{fig:installingPyCharmWindows07runInstaller}% -]{\tightbox{\includegraphics[height=3.75cm]{\currentDir/installingPyCharmWindows07runInstaller}}}% -% -\hfill\hfill%% -% -\subfloat[][% -We do want to install, so click \keys{Yes}.% -\label{fig:installingPyCharmWindows08runInstaller}% -]{\tightbox{\includegraphics[height=3.75cm]{\currentDir/installingPyCharmWindows08runInstaller}}}% -\hfill\strut% -% -\\[10pt]% -% -\subfloat[][% -The welcome screen of the installer. We click \keys{Next}.% -\label{fig:installingPyCharmWindows09installation}% -]{\tightbox{\includegraphics[height=4cm]{\currentDir/installingPyCharmWindows09installation}}}% -% -\hfill% -% -\subfloat[][% -The installation folder selection. We click \keys{Next}.% -\label{fig:installingPyCharmWindows10installation}% -]{\tightbox{\includegraphics[height=4cm]{\currentDir/installingPyCharmWindows10installation}}}% -% -\hfill% -% -\subfloat[][% -The installation options. We can click \keys{Next}.% -\label{fig:installingPyCharmWindows11installation}% -]{\tightbox{\includegraphics[height=4cm]{\currentDir/installingPyCharmWindows11installation}}}% -% -\\[10pt]% -% -\subfloat[][% -The start menu folder choose dialog. We click \keys{Install}.% -\label{fig:installingPyCharmWindows12installation}% -]{\tightbox{\includegraphics[height=4cm]{\currentDir/installingPyCharmWindows12installation}}}% -% -\hfill% -% -\subfloat[][% -The install process starts.% -\label{fig:installingPyCharmWindows13installation}% -]{\tightbox{\includegraphics[height=4cm]{\currentDir/installingPyCharmWindows13installation}}}% -% -\hfill% -% -\subfloat[][% -The installation is finished. Select ``Run PyCharm Community Edition'' and click \keys{Finish}.% -\label{fig:installingPyCharmWindows14installation}% -]{\tightbox{\includegraphics[height=4cm]{\currentDir/installingPyCharmWindows14installation}}}% -% -\caption{The installation steps of \pycharm\ under \windows~(continued).}% -\label{fig:installingPyCharmWindowsB}% -% -\end{figure}% -% -\begin{figure}% -\ContinuedFloat% -\centering% -% -\strut\hfill\strut% -\subfloat[][% -The welcome screen of \pycharm.% -\label{fig:installingPyCharmWindows15running}% -]{\tightbox{\includegraphics[width=0.4\linewidth]{\currentDir/installingPyCharmWindows15running}}}% -% -\strut\hfill\strut\strut\hfill\strut%% -% -\subfloat[][% -We read the user agreement, confirm that we read it, and click \keys{Continue}.% -\label{fig:installingPyCharmWindows16running}% -]{\tightbox{\includegraphics[width=0.4\linewidth]{\currentDir/installingPyCharmWindows16running}}}% -\strut\hfill\strut% -% -\\[10pt]% -% -\strut\hfill\strut% -\subfloat[][% -We do not want to send any data and click \keys{Don't Send}.% -\label{fig:installingPyCharmWindows17running}% -]{\tightbox{\includegraphics[width=0.4\linewidth]{\currentDir/installingPyCharmWindows17running}}}% -% -\strut\hfill\strut\strut\hfill\strut%% -% -\subfloat[][% -Finally, \pycharm\ is ready to use.% -\label{fig:installingPyCharmWindows18running}% -]{\tightbox{\includegraphics[width=0.4\linewidth]{\currentDir/installingPyCharmWindows18running}}}% -\strut\hfill\strut% -% -\caption[]{The installation steps of \pycharm\ under \windows~(continued).}% -\label{fig:installingPyCharmWindowsC}% -\end{figure}% -% -The process of installing \pycharm\ under \windows\ is illustrated in \cref{fig:installingPyCharmWindowsA}. -You first need to download the \pycharm\ Community Edition installation executable from \url{https://www.jetbrains.com/pycharm/download}. -Make sure to download the Community Edition and nothing else, as shown in \cref{fig:installingPyCharmWindows01download,fig:installingPyCharmWindows02download,fig:installingPyCharmWindows03download}. -Once the installer is downloaded, you start it and confirm that you wish to install \pycharm, as illustrated in \cref{fig:installingPyCharmWindows05runInstaller,fig:installingPyCharmWindows06runInstaller,fig:installingPyCharmWindows07runInstaller,fig:installingPyCharmWindows08runInstaller}. -As \cref{fig:installingPyCharmWindows09installation,fig:installingPyCharmWindows10installation,fig:installingPyCharmWindows11installation} show, the installation setup process is more or less automated, we just need to click \keys{Next} here and there and finally click \keys{Install}~(\cref{fig:installingPyCharmWindows12installation}). -After the installation completes, we run \pycharm\ for the first time. -Now we need to agree to the user agreement~(\cref{fig:installingPyCharmWindows16running}) and should probably choose that we do not with to send any information about our \pycharm\ usage out~(\cref{fig:installingPyCharmWindows17running}). -Finally, as sketched in \cref{fig:installingPyCharmWindows18running}, we have a running and ready \pycharm\ \pgls{IDE}.% -% -\FloatBarrier% -\endhsection% -% diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows01download.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows01download.png deleted file mode 100644 index 46d7427..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows01download.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows02download.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows02download.png deleted file mode 100644 index f0a374c..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows02download.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows03download.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows03download.png deleted file mode 100644 index 75b1eaa..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows03download.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows04download.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows04download.png deleted file mode 100644 index fd77dec..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows04download.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows05runInstaller.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows05runInstaller.png deleted file mode 100644 index 7fb60a7..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows05runInstaller.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows06runInstaller.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows06runInstaller.png deleted file mode 100644 index 46bc558..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows06runInstaller.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows07runInstaller.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows07runInstaller.png deleted file mode 100644 index 6a5f792..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows07runInstaller.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows08runInstaller.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows08runInstaller.png deleted file mode 100644 index d5feade..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows08runInstaller.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows09installation.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows09installation.png deleted file mode 100644 index e66f477..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows09installation.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows10installation.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows10installation.png deleted file mode 100644 index 56c2e81..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows10installation.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows11installation.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows11installation.png deleted file mode 100644 index 91b195c..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows11installation.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows12installation.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows12installation.png deleted file mode 100644 index 3e1fde0..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows12installation.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows13installation.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows13installation.png deleted file mode 100644 index 05fea6e..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows13installation.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows14installation.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows14installation.png deleted file mode 100644 index 4a67990..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows14installation.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows15running.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows15running.png deleted file mode 100644 index 753b1c4..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows15running.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows16running.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows16running.png deleted file mode 100644 index dfe2602..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows16running.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows17running.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows17running.png deleted file mode 100644 index b98f953..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows17running.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows18running.png b/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows18running.png deleted file mode 100644 index be742b9..0000000 Binary files a/slides/02_getting_started/graphics/installingPyCharmWindows/installingPyCharmWindows18running.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows01openTerminal.png b/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows01openTerminal.png deleted file mode 100644 index 04c7501..0000000 Binary files a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows01openTerminal.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows02pythonVersion.png b/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows02pythonVersion.png deleted file mode 100644 index b3a60d6..0000000 Binary files a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows02pythonVersion.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows03python.png b/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows03python.png deleted file mode 100644 index 34d9b71..0000000 Binary files a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows03python.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows04installGet.png b/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows04installGet.png deleted file mode 100644 index 9a28ac8..0000000 Binary files a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows04installGet.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows05downloading.png b/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows05downloading.png deleted file mode 100644 index dedd4cf..0000000 Binary files a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows05downloading.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows06finished.png b/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows06finished.png deleted file mode 100644 index 83f0c3c..0000000 Binary files a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows06finished.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows07pythonVersion.png b/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows07pythonVersion.png deleted file mode 100644 index 7a4b4d5..0000000 Binary files a/slides/02_getting_started/graphics/installingPythonWindows/installingPythonWindows07pythonVersion.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole1consoleButton.png b/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole1consoleButton.png deleted file mode 100644 index be43a87..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole1consoleButton.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole2consoleOpen.png b/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole2consoleOpen.png deleted file mode 100644 index 2322292..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole2consoleOpen.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole3writingCode.png b/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole3writingCode.png deleted file mode 100644 index 75f73aa..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole3writingCode.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole4codeOutput.png b/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole4codeOutput.png deleted file mode 100644 index 000706d..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/pycharmConsole4codeOutput.png and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole1python.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole1python.pdf deleted file mode 100644 index eb83cde..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole1python.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole2pythonRunning.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole2pythonRunning.pdf deleted file mode 100644 index 64a737f..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole2pythonRunning.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole3writingCode.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole3writingCode.pdf deleted file mode 100644 index 09e99eb..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole3writingCode.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole4codeOutput.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole4codeOutput.pdf deleted file mode 100644 index 4f6389d..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole4codeOutput.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole5exit.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole5exit.pdf deleted file mode 100644 index 73f8be7..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole5exit.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole6left.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole6left.pdf deleted file mode 100644 index c265ab6..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalConsole6left.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython1cd.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython1cd.pdf deleted file mode 100644 index 360e8ea..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython1cd.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython2python.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython2python.pdf deleted file mode 100644 index 51db78f..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython2python.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython3result.pdf b/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython3result.pdf deleted file mode 100644 index 8d2d385..0000000 Binary files a/slides/02_getting_started/graphics/pythonInTheTerminal/terminalPython3result.pdf and /dev/null differ diff --git a/slides/02_getting_started/graphics/pythonUnderUbuntu/ubuntuTerminalPythonVersion.pdf b/slides/02_getting_started/graphics/pythonUnderUbuntu/ubuntuTerminalPythonVersion.pdf deleted file mode 100644 index 3a9923a..0000000 Binary files a/slides/02_getting_started/graphics/pythonUnderUbuntu/ubuntuTerminalPythonVersion.pdf and /dev/null differ