Using Powershell on Jupyter Notebook on Python for Windows.
- Python for Windows
- Jupyter-PowerShell5
- Jupyter-PowerShellSDK (Optional)
- Jupyter Powershell Kernel (Optional)
- Node.js (Use in extentions for JupyterLab)
- PowerShell 7 (Optional)
- Jupyter Nbextensions (Optional)
- Jupyter Nbextensions Configurator (Optional)
- Git for Windows (Optional)
- .Net Interactive (Optional)
.\WinPython.ps1 [Script Option(s)]
-
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
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