Skip to content

Latest commit

 

History

History

PythonForWindows

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

PythonForWindows

Using Powershell on Jupyter Notebook on Python for Windows.

Installing on this script

Installations

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

Script Options

  • PythonVersion
    Specify version of the Python for Windows.
    Mandatory: No
    Default: 3.11
    e.g.: .\WinPython.ps1 -PythonVersion 3.10

  • UsePipKernel
    This switch option will install Jupyter Powershell Kernel instead of Jupyter-PowerShell5.
    e.g.: .\WinPython.ps1 -UsePipKernel

  • InstallNBExtensions
    This switch option will install Jupyter Nbextensions and Jupyter Nbextensions Configurator.
    e.g.: .\WinPython.ps1 -InstallNBExtensions

  • InstallNIIExtensions
    This switch option will install NII Extensions for Jupyter Notebook. then requires the git for installation or add "-InstallGit" option.
    e.g.: .\WinPython.ps1 -InstallNIIExtensions

  • InstallGit
    This switch option will install Git for Windows.
    e.g.: .\WinPython.ps1 -InstallGit

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

  • 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

Installation Example

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