Commit 71ec810b authored by Matthieu Boileau's avatar Matthieu Boileau

Use nbcourse

parent 99b3aa6c
......@@ -15,3 +15,5 @@ maillage_struct/test/test_triangle.cpp
cmake_point/CMakeLists.txt
maillage_cmake/CMakeLists.txt
maillage_cmake/test/test_echec.cpp
.doit.db.db
.env/
......@@ -2,9 +2,6 @@ stages:
- deps
- pages
variables:
GIT_SUBMODULE_STRATEGY: recursive
deps:
stage: deps
tags:
......@@ -17,13 +14,16 @@ deps:
- docker push $CI_REGISTRY_IMAGE
pages:
variables:
PYTHONPATH: nbcourse
stage: pages
image: $CI_REGISTRY_IMAGE
tags:
- docker
script:
- make
- make archive
- git clone --recurse-submodules https://gitlab.math.unistra.fr/boileau/nbcourse.git
- pip install -r nbcourse/requirements.txt
- python -m nbcourse -n 4
- mv build public
artifacts:
paths:
......
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"\n",
" ![](img/cpp.jpg)\n",
"\n",
"***\n",
"\n",
"# Environnement de programmation pour C++\n",
"***\n",
"\n",
"<style>\n",
" table {\n",
" display: inline;\n",
" }\n",
" table, tr, th, td {\n",
" border: 0 !important;\n",
" }\n",
" th {\n",
" font-weight: normal !important;\n",
" font-size: 100%;\n",
" padding: 15px !important;\n",
" }\n",
" th#chap {\n",
" font-weight: bold !important;\n",
" font-size: 140%;\n",
" }\n",
" td {\n",
" font-size: 130%;\n",
" padding: 10px !important;\n",
" }\n",
" th, td {\n",
" border-bottom: 1px solid #ddd !important;\n",
" }\n",
"</style>\n",
"\n",
"<table>\n",
" <tr>\n",
" <th id=\"chap\">Chapitre</th>\n",
" <th>Html</th> \n",
" <th>Diaporama</th>\n",
" <th>Archive</th>\n",
" </tr>\n",
" <tr>\n",
" <td>Programme du cours</td>\n",
" <td><a href=\"00-intro.html\"><img width=\"25\" src=\"img/favicon-notebook.ico\"></a></td>\n",
" <td><a href=\"00-intro.slides.html\"><img width=\"35\" src=\"img/slideshow.png\"></a></td>\n",
" <td><a href=\"00-intro.zip\"><img width=\"35\" src=\"img/download.svg\"></a></td>\n",
" </tr>\n",
" <tr>\n",
" <td>La compilation</td>\n",
" <td><a href=\"01-compilation.html\"><img width=\"25\" src=\"img/favicon-notebook.ico\"></a></td>\n",
" <td><a href=\"01-compilation.slides.html\"><img width=\"35\" src=\"img/slideshow.png\"></a></td>\n",
" <td><a href=\"01-compilation.zip\"><img width=\"35\" src=\"img/download.svg\"></a></td>\n",
" </tr>\n",
" <tr>\n",
" <td>Les gestionnaires de projet</td>\n",
" <td><a href=\"02-gestionnaires_de_projet.html\"><img width=\"25\" src=\"img/favicon-notebook.ico\"></a></td>\n",
" <td><a href=\"02-gestionnaires_de_projet.slides.html\"><img width=\"35\" src=\"img/slideshow.png\"></a></td>\n",
" <td><a href=\"02-gestionnaires_de_projet.zip\"><img width=\"35\" src=\"img/download.svg\"></a></td>\n",
" </tr>\n",
" <tr>\n",
" <td>Un environnement de développement intégré</td>\n",
" <td><a href=\"03-IDE.html\"><img width=\"25\" src=\"img/favicon-notebook.ico\"></a></td>\n",
" <td><a href=\"03-IDE.slides.html\"><img width=\"35\" src=\"img/slideshow.png\"></a></td>\n",
" </tr>\n",
" <tr>\n",
" <td>Application</td>\n",
" <td><a href=\"04-tp6-exo3.html\"><img width=\"25\" src=\"img/favicon-notebook.ico\"></a></td>\n",
" <td><a href=\"04-tp6-exo3.slides.html\"><img width=\"35\" src=\"img/slideshow.png\"></a></td>\n",
" </tr>\n",
"</table>\n",
"\n",
"*** \n",
"\n",
"<style>\n",
" td#bottom {\n",
" font-size: 120%;\n",
" text-align: center;\n",
" border: 0 !important;\n",
" }\n",
"</style>\n",
"\n",
"<table>\n",
" <tr>\n",
" <td id=\"bottom\">Version pdf</td>\n",
" <td id=\"bottom\">Archive complète</td>\n",
" <td id=\"bottom\">Sources</td>\n",
" </tr>\n",
" <tr>\n",
" <td id=\"bottom\"><a href=\"cpp-dev.pdf\"><img width=\"30\" src=\"img/Adobe_PDF_icon.svg\"></a></td>\n",
" <td id=\"bottom\"><a href=\"cpp-dev.zip\"><img width=\"30\" src=\"img/download.svg\"></a></td>\n",
" <td id=\"bottom\"><a href=\"https://gitlab.math.unistra.fr/boileau/outils-dev-log\"><img width=\"30\" src=\"img/GitLab_Logo.svg\"></a></td>\n",
"\n",
" </tr>\n",
"</table>\n",
"\n",
"\n",
"*** \n",
"\n",
"<style>\n",
" td#auteurs {\n",
" font-size: 100%;\n",
" border: 0 !important;\n",
" padding: 5px !important;\n",
" }\n",
"</style>\n",
"<table>\n",
" <tr>\n",
" <td id=\"auteurs\">Matthieu Boileau</td>\n",
" <td id=\"auteurs\"><a href=\"mailto: matthieu.boileau@math.unistra.fr\"><img style=\"display:inline\" width=\"20\" src=\"img/email.svg\"></a></td>\n",
" </tr>\n",
"</table>\n",
"\n",
"*Avril 2019. Contenu mis à disposition sous licence <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\"><img style=\"display:inline\" width=\"70\" src=\"img/by-sa.svg\"></a>*"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": false,
"skip_h1_title": true,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 2
}
title: Environnement de programmation pour C++
slug_title: outils-dev-log
subtitle: Mathématiques Licence 3, Strasbourg
favicon: fig/favicon.ico
book:
file: outils-dev-log.pdf
picture:
path: fig/cpp.jpg
width: 100px
alt: Logo C++
authors:
- name: Matthieu Boileau
email: matthieu.boileau@math.unistra.fr
links:
- title: Notice
target: manual.html
icon:
path: img/Infobox_info_icon.svg
width: 35px
# - title: Exécuter
# target: https://mybinder.org/v2/gh/fitzinger/cours-python/master
# icon:
# path: https://mybinder.org/badge.svg
# width: auto
- title: Version pdf
target: outils-dev-log.pdf
icon:
path: img/Adobe_PDF_icon.svg
width: 30px
- title: Sources
target: https://gitlab.math.unistra.fr/boileau/outils-dev-log
icon:
path: img/GitLab_Logo.svg
width: 30px
- title: Archive complète
target: outils-dev-log.zip
icon:
path: img/download.svg
width: 35px
license:
text: Contenu mis à disposition sous licence
target: https://creativecommons.org/licenses/by-sa/4.0/
icon:
path: img/by-sa.svg
width: 70px
local_reveal: True
nb:
dir: notebooks
timeout: 120
material:
- fig
- maillage
- addition
- test
- maillage_struct
- maillage_cmake
- maillage_plot
- cmake_point
- .notebooksrc
- hello.s
- add.cpp
- helloworld.cpp
- sum_power.cpp
......@@ -2,9 +2,9 @@
if [ $(uname) == 'Darwin' ]
then # aliases pour MacOS
alias ldd="otool -L"
alias g++="g++-8"
alias g++="g++-9"
alias time='TIMEFORMAT="%R" time'
export CXX=g++-8
export CXX=g++-9
else # aliases pour Linux
alias time='\time -f "%e"'
export CXX=g++
......
......@@ -6,7 +6,7 @@
"source": [
"# Programme du cours\n",
"\n",
"![Logo C++ francophone](img/cpp.jpg)\n",
"![Logo C++ francophone](fig/cpp.jpg)\n",
"\n",
"\n",
"## Objectifs\n",
......
......@@ -909,7 +909,7 @@
"source": [
"## Le processus de compilation en résumé\n",
"\n",
"![](img/compilation.png)\n",
"![](fig/compilation.png)\n",
"\n",
"Extrait de C. Bastoul, *(Ré)introduction à la compilation.*"
]
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -47,7 +47,7 @@
"source": [
"## Découverte de l'interface\n",
"\n",
"![Ecran d'accueil de Visual Studio](img/visual_studio_home.png)"
"![Ecran d'accueil de Visual Studio](fig/visual_studio_home.png)"
]
},
{
......
CMakeLists.txt_options
\ No newline at end of file
CMakeLists.txt_test
\ No newline at end of file
#include "point.hpp"
int main() {return 1;}
......@@ -15,7 +15,8 @@ else()
set(CMAKE_FIND_FRAMEWORK NEVER)
endif()
# Nécessite CMake >= 3.12
find_package(Python3 COMPONENTS Interpreter NumPy required)
set(Python3_FIND_VIRTUALENV "ONLY")
find_package(Python3 COMPONENTS Interpreter Development NumPy required)
set(Python_NumPy_INCLUDE_DIRS ${Python3_NumPy_INCLUDE_DIRS})
set(Python_LIBRARIES ${Python3_LIBRARIES})
set(Python_INCLUDE_DIRS ${Python3_INCLUDE_DIRS} ${Python_NumPy_INCLUDE_DIRS})
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment