# **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 ```