Skip to content

Latest commit

 

History

History
73 lines (61 loc) · 2.84 KB

File metadata and controls

73 lines (61 loc) · 2.84 KB

WinPython

Using Powershell on Jupyter Notebook on WinPython.

Installing

Installations

.\WinPython.ps1 [Script Option(s)]

Script Options

  • WinPythonVersion
    Specify version of the WinPython.
    Mandatory: No
    Default: 3.9
    e.g.: .\WinPython.ps1 -WinPythonVersion 3.10

  • WinPythonType
    Specify type of the WinPython.
    Mandatory: No
    Default: dot e.g.: .\WinPython.ps1 -WinPythonType cod

  • WinPythonPath
    Specify installation path of the WinPython.
    Mandatory: No
    Default: $env:LOCALAPPDATA\Programs\WinPython
    e.g.: .\WinPython.ps1 -WinPythonPath C:\PathTo\WinPython

  • InstallPwsh7SDK
    This switch option will install Jupyter-PowerShellSDK.
    e.g.: .\Anaconda.ps1 -InstallPwsh7SDK

  • InstallPortableGit
    This switch option will install PortableGit.
    e.g.: .\WinPython.ps1 -InstallPortableGit

  • InstallDotnetInteractive
    This switch option will install .Net Interactive.
    e.g.: .\WinPython.ps1 -InstallDotnetInteractive

  • PortableGitPath
    Specify installation path of the PortableGit.
    Mandatory: No
    Default: $env:LOCALAPPDATA\Programs\WinPython\PortableGit
    e.g.: .\WinPython.ps1 -InstallPortableGit -PortableGitPath C:\PathTo\PortableGit

  • CleanupDownloadFiles
    This switch option will delete downloaded files after installations.
    e.g.: .\WinPython.ps1 -DoNotCleanupDownloadFiles

  • WorkingFolder [Folder Path]
    Specify the working folder in this script. Default: $PSScriptRoot (Same folder as this script)
    Mandatory: No
    e.g.: .\WinPython.ps1 -WorkingFolder C:\pathto\folder

  • AddStartMenu This switch option will add WinPython binaries to Windows start menu.
    e.g.: .\WinPython.ps1 -AddStartMenu

Installation Example

Set-Location $env:HOMEPATH
Invoke-WebRequest -UseBasicParsing `
    -Uri https://github.com/sakaztk/pwsh-notebook/raw/master/WinPython/WinPython.ps1 `
    -OutFile .\WinPython.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\WinPython.ps1 -CleanupDownloadFiles -WorkingFolder $env:HOMEPATH -AddStartMenu -Verbose