12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- $ErrorActionPreference = 'stop'
- New-Item -Path $Env:USERPROFILE\.jupyter -ItemType "directory" -Force
- pip install -q --upgrade pip --user
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- pip --version
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- pip install -e ".[test]" || pip install -v -e ".[test]"
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- jlpm versions
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- jlpm config current
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- jupyter lab path
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- jupyter server extension enable jupyterlab
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- jupyter serverextension enable jupyterlab
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- if ($Env:GROUP -eq "integrity") {
- pip install notebook==4.3.1
- if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
- }
- if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) { exit $LASTEXITCODE }
|