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.13
    e.g.: .\WinPython.ps1 -PythonVersion 3.12

  • 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.
    [Note] It may not work export function for JupyterLab if install NBExtensions.(*)
    e.g.: .\WinPython.ps1 -InstallNBExtensions

  • 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