Commit de29cf27 by paugier

### Mise à jour 2021

parent c4ed6e0b
Pipeline #74033 passed with stage
in 47 seconds
 # Scientific Computing (Master 2 EFM) # Introduction to Scientific Computing (Master 2 EFM) ## Content During sessions 1, 2 and 4 (9 hours), we will present an introduction on scientific computing and programming: During the first sessions, we will present an introduction on scientific computing and programming: - Computers to compute (CPU, memories, GPU, clusters) - Numbers in computers ... ... @@ -15,11 +15,15 @@ scientific computing and programming: We will study some basics on Linux and Python for scientific computing. The personal project part will be presented during session 3. Sessions 3, 5, 6 and 7 will be dedicated to practical exercises on (3) Computation of integrals, (5) Finite Difference methods, (6) Gradient descent and (7) Machine learning. Some sessions will be dedicated to practical exercises on We will work together on your personal projects during session 8. - Computation of integrals, - Finite Difference methods, - Gradient descent and - Machine learning. You will also have to work for this course on a "personal project" on an open subject. One session will be dedicated to work on this project. ## The teachers ... ...
 import sys if sys.version_info[:2] < (3, 6): raise RuntimeError("Python version >= 3.6 required.") try: import conda except ImportError: print( "Problem: the conda package not importable.\n" "Please run this script in the base conda environment" ) sys.exit(1) else: print("Good! conda package importable!") if sys.version_info[:2] < (3, 8): raise RuntimeError("Python version >= 3.8 required.") try: import numpy, scipy, matplotlib, pandas ... ...
 ... ... @@ -30,7 +30,7 @@ bash Miniconda3-latest-Linux-x86_64.sh You have to answer "yes" to the last question about the initialization of conda. When it's done, close the terminal (with `ctrl-d`) and reopen a new terminal (with `ctrl-alt-t`). The world "(base)" should be in the line in the terminal (with `ctrl-alt-t`). The word "(base)" should be in the line in the terminal. You need to activate the conda channel `conda-forge` with: ... ...
 ... ... @@ -320,15 +320,15 @@ "output_type": "stream", "text": [ "total 36\n", "-rw-rw-r-- 1 pierre pierre 641 Sep 25 17:15 check_env.py\n", "-rw-rw-r-- 1 pierre pierre 3926 Nov 2 16:40 install.md\n", "drwxrwxr-x 6 pierre pierre 4096 Nov 16 10:13 \u001b[0m\u001b[01;34mipynb\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 1499 Sep 25 17:15 LICENSE.txt\n", "-rw-rw-r-- 1 pierre pierre 1178 Nov 2 16:37 Makefile\n", "-rw-rw-r-- 1 pierre pierre 2558 Oct 13 11:17 mini-projects.md\n", "drwxrwxr-x 4 pierre pierre 4096 Sep 25 17:15 \u001b[01;34mpyfiles\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 2534 Sep 25 19:06 README.md\n", "-rw-rw-r-- 1 pierre pierre 187 Nov 2 16:38 requirements.txt\n" "-rw-rw-r-- 1 pierre pierre 641 Sep 25 2020 check_env.py\n", "-rw-rw-r-- 1 pierre pierre 3925 Nov 16 2020 install.md\n", "drwxrwxr-x 6 pierre pierre 4096 Sep 6 11:52 \u001b[0m\u001b[01;34mipynb\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 1499 Sep 6 11:53 LICENSE.txt\n", "-rw-rw-r-- 1 pierre pierre 1178 Nov 2 2020 Makefile\n", "-rw-rw-r-- 1 pierre pierre 2943 Sep 6 11:21 mini-projects.md\n", "drwxrwxr-x 4 pierre pierre 4096 Sep 25 2020 \u001b[01;34mpyfiles\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 2537 Sep 6 11:13 README.md\n", "-rw-rw-r-- 1 pierre pierre 187 Nov 2 2020 requirements.txt\n" ] } ], ... ... @@ -365,20 +365,20 @@ "output_type": "stream", "text": [ "total 56\n", "drwxrwxr-x 5 pierre pierre 4096 Nov 16 10:13 \u001b[0m\u001b[01;34m.\u001b[0m\n", "drwxr-xr-x 13 pierre pierre 4096 Nov 16 09:42 \u001b[01;34m..\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 641 Sep 25 17:15 check_env.py\n", "-rw-rw-r-- 1 pierre pierre 208 Sep 25 18:22 .gitignore\n", "-rw-rw-r-- 1 pierre pierre 333 Nov 2 16:37 .gitlab-ci.yml\n", "drwxrwxr-x 6 pierre pierre 4096 Nov 16 09:31 \u001b[01;34m.hg\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 3926 Nov 2 16:40 install.md\n", "drwxrwxr-x 6 pierre pierre 4096 Nov 16 10:13 \u001b[01;34mipynb\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 1499 Sep 25 17:15 LICENSE.txt\n", "-rw-rw-r-- 1 pierre pierre 1178 Nov 2 16:37 Makefile\n", "-rw-rw-r-- 1 pierre pierre 2558 Oct 13 11:17 mini-projects.md\n", "drwxrwxr-x 4 pierre pierre 4096 Sep 25 17:15 \u001b[01;34mpyfiles\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 2534 Sep 25 19:06 README.md\n", "-rw-rw-r-- 1 pierre pierre 187 Nov 2 16:38 requirements.txt\n" "drwxrwxr-x 5 pierre pierre 4096 Nov 16 2020 \u001b[0m\u001b[01;34m.\u001b[0m\n", "drwxr-xr-x 18 pierre pierre 4096 Sep 6 11:06 \u001b[01;34m..\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 641 Sep 25 2020 check_env.py\n", "-rw-rw-r-- 1 pierre pierre 208 Sep 25 2020 .gitignore\n", "-rw-rw-r-- 1 pierre pierre 333 Nov 2 2020 .gitlab-ci.yml\n", "drwxrwxr-x 6 pierre pierre 4096 Sep 6 11:06 \u001b[01;34m.hg\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 3925 Nov 16 2020 install.md\n", "drwxrwxr-x 6 pierre pierre 4096 Sep 6 11:52 \u001b[01;34mipynb\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 1499 Sep 6 11:53 LICENSE.txt\n", "-rw-rw-r-- 1 pierre pierre 1178 Nov 2 2020 Makefile\n", "-rw-rw-r-- 1 pierre pierre 2943 Sep 6 11:21 mini-projects.md\n", "drwxrwxr-x 4 pierre pierre 4096 Sep 25 2020 \u001b[01;34mpyfiles\u001b[0m\n", "-rw-rw-r-- 1 pierre pierre 2537 Sep 6 11:13 README.md\n", "-rw-rw-r-- 1 pierre pierre 187 Nov 2 2020 requirements.txt\n" ] } ], ... ... @@ -544,7 +544,7 @@ "name": "stdout", "output_type": "stream", "text": [ "/data0/opt/miniconda3/condabin/app:/home/pierre/.pyenv/bin:/home/pierre/.pyenv/versions/3.8.2/bin:/home/pierre/.pyenv/libexec:/home/pierre/.pyenv/plugins/python-build/bin:/home/pierre/.pyenv/shims:/data0/opt/miniconda3/condabin/app:/data0/opt/miniconda3/condabin:/home/pierre/.pyenv/bin:/home/pierre/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/pierre/opt/env_xonsh/bin/:/data0/opt/miniconda3/condabin/app:/home/pierre/.cargo/bin:/home/pierre/.pyenv/bin\n" "/data0/opt/miniconda3/condabin/app:/home/pierre/.pyenv/bin:/home/pierre/.pyenv/versions/3.9.4/bin:/home/pierre/.pyenv/libexec:/home/pierre/.pyenv/plugins/python-build/bin:/home/pierre/.pyenv/plugins/python-build/bin:/data0/opt/miniconda3/condabin/app:/home/pierre/.pyenv/bin:/home/pierre/.pyenv/shims:/home/pierre/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/pierre/opt/env_xonsh/bin/:/data0/opt/miniconda3/condabin/app:/home/pierre/.cargo/bin:/home/pierre/.pyenv/bin:/home/pierre/Dev/Nek5000/bin\n" ] } ], ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 Pierre Augier (LEGI) and Enzo Le BoueDec (LEGI) (And Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Christophe Picard (LJK), Loïc Huder (ISTerre)...) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Oliver Henriot (GRICAD), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Oliver Henriot (GRICAD), Christophe Picard (LJK), Loïc Huder (ISTerre)
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTERRE), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTerre), Christophe Picard (LJK), Loïc Huder (ISTerre) ... ...
 %% Cell type:markdown id: tags: # Scientific computing course 2020 # Scientific computing course 2021 **Acquire strong basis in Python to use it efficiently** Pierre Augier (LEGI), Cyrille Bonamy (LEGI), Eric Maldonado (Irstea), Franck Thollard (ISTERRE), Christophe Picard (LJK) ... ...
 ... ... @@ -17,8 +17,6 @@ titles = { "Mercurial and gitlab": "Bonus: versioning with Mercurial and Gitlab", "Environnement": "Bonus: interpreters, distributions, packages", "Intro-open-source-sciences": "Introduction open-source in science", } this_dir = Path(__file__).parent ... ... @@ -41,12 +39,16 @@ for path in ipynb_files: back = "\n" code = """ Scientific computing course 2020 Scientific computing course 2021 ================================ """ code += f""" {back.join(lines)} **Warning:** Save the address of this page in your browser! You will need to come back to it many times. """ path_rst = this_dir / "index.rst" ... ...