Commit 13fcdd54 authored by aaa9c30b31abb6b20ce0aefe46b85784's avatar aaa9c30b31abb6b20ce0aefe46b85784

premier jet

parents a2574ef1 6cf98825
......@@ -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
# **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
```
# 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
......@@ -4,12 +4,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# <div align=\"center\"> toy_notebook_fr * </div> #\n",
"# <div align=\"center\"> toy_notebook_fr</div> #\n",
"\n",
"\n",
"\n",
"<div align=\"center\"> March 28, 2019 </div>\n",
"\n",
"\n",
"\n",
"## 1 À propos du calcul de π ##\n",
"\n",
"### 1.1 En demandant à la lib maths ###\n",
......
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