diff --git a/journal/Journal2Bord.md b/journal/Journal2Bord.md index 2efb68cad70eef47d1e66a0df8bc71ac313f26d8..9731884096eb3cc31f82392e12c80db2b9b67b99 100644 --- a/journal/Journal2Bord.md +++ b/journal/Journal2Bord.md @@ -23,4 +23,7 @@ * [docutils](https://docutils.sourceforge.io/docs/index.html) **Indexation** - * [docfetcher](http://docfetcher.sourceforge.net/fr/index.html) \ No newline at end of file + * [docfetcher](http://docfetcher.sourceforge.net/fr/index.html) + + **Doc interne** + * JupyterLab and PowerShell (linux Operating System) \ No newline at end of file diff --git a/journal/JupyterLabWithPowerShell.md b/journal/JupyterLabWithPowerShell.md new file mode 100644 index 0000000000000000000000000000000000000000..68e0e1a5119bf381de128b9012c6c405a5840e1a --- /dev/null +++ b/journal/JupyterLabWithPowerShell.md @@ -0,0 +1,75 @@ +# **JupyterLab with PowerShell** + +## Installation python + +On choisit l'installation [miniconda](https://docs.conda.io/en/latest/miniconda.html) + +## Installation JupyterLab et PowerShell + +**JupyterLab** + +JupyterLab est la seconde génération de notebook. + +``` bash +conda install -c conda-forge jupyterlab +``` +**PowerShell** + +Sous linux, utilisez votre gestionnaire de package + +``` bash +apt install powershell +``` + +## Installation PowerShell + +A ce jour conda ne contient pas le package on passe par pip. +Tout d'abord on vérifie l'environnement: +``` bash +which python +which pip +``` +On doit être ds l'environnement conda + +De façon standard ressemble sous linux à +```bash +/home/$login/miniconda/bin/python +/home/$login/miniconda/bin/pip +``` + +On installe PowerShell: +```Bash +pip install powershell_kernel +python -m powershell_kernel.install +``` +## Vérifications +1. __Test kernel JupyterLab:__ +On lance JupyterLab +``` shell +jupyter lab +``` +on doit voir : + +![JupyterLab with powerShell](./images/JupyterLabWithPowerShell.png) + +2. __ Test version de PowerShell: __ + +On ouvre un notebook PowerShell +et on tape: +``` +$>$PsVersionTable +``` +```code + +Name Value +---- ----- +PSVersion 7.0.0 +PSEdition Core +GitCommitId 7.0.0 +OS Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.82-1 +Platform Unix +PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} +PSRemotingProtocolVersion 2.3 +SerializationVersion 1.1.0.1 +WSManStackVersion 3.0 +``` diff --git a/journal/gitPratique.md b/journal/gitPratique.md new file mode 100644 index 0000000000000000000000000000000000000000..15edc90c038eb2fb077808f6a0c57a3663598208 --- /dev/null +++ b/journal/gitPratique.md @@ -0,0 +1,41 @@ +# commandes GIT de base # + +1. *** __Recupérer un depot git__ *** + +``` bash +mkdir copieDepot +cd copieDepot +git clone url +``` + + +2. *** __Mettre à jour du depot distant vers le local__ *** + +Evaluer les modifs +``` bash +cd copieDepot +git status +``` +git renvoie la liste des modifs. On ajoute suivi des fichiers modifiés + +``` +git add monPremierFichierModifie +git add monSecondFichierModifie + +git commit -m "mon message de commit de mise a jours" +``` +autre possibilité +``` +git pull +``` + + +3. *** __Mettre à jour du depot locl vers el distant__ *** + +Dans son répertoire git : +``` +git push +``` +On doit avoir ses identifiants + + diff --git a/journal/images/.gitkeep b/journal/images/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/journal/images/JupyterLabWithPowerShell.png b/journal/images/JupyterLabWithPowerShell.png new file mode 100644 index 0000000000000000000000000000000000000000..e456ca0b95b90375581835fcbcfcf5f16ad3aba3 Binary files /dev/null and b/journal/images/JupyterLabWithPowerShell.png differ diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index 9951fabd5fa51824d5426668f5c46602b8d05a4e..77e8a712e5522077ef88ff00a9926103ef94017b 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -4,12 +4,14 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "#
toy_notebook_fr *
#\n", + "#
toy_notebook_fr
#\n", "\n", "\n", "\n", "
March 28, 2019
\n", "\n", + "\n", + "\n", "## 1 À propos du calcul de π ##\n", "\n", "### 1.1 En demandant à la lib maths ###\n",