Python for Windowsを使用してJupyter Notebook上でPowershellを使用する。
- Python for Windows
- Node.js (Use in extentions for JupyterLab)
- Jupyter-PowerShell5 (DeepAQからフォーク)
- Jupyter-PowerShellSDK (オプション)
- .Net Interactive (オプション)
.\WinPython.ps1 [スクリプトオプション]
-
PythonVersion
Python for Windowsのバージョンを指定します。
必須: いいえ
デフォルト: 3.13
例: .\WinPython.ps1 -PythonVersion 3.12 -
InstallPwsh7SDK
このスイッチオプションを指定すると、 Jupyter-PowerShellSDKをインストールします。
例: .\Anaconda.ps1 -InstallPwsh7SDK -
InstallDotnetInteractive
このスイッチオプションを指定すると、.Net Interactiveをインストールします。
例: .\WinPython.ps1 -InstallDotnetInteractive -
CleanupDownloadFiles
このスイッチオプションを指定すると、インストール後にダウンロードしたファイルを削除します。
例: .\WinPython.ps1 -DoNotCleanupDownloadFiles -
WorkingFolder [Folder Path]
スクリプトで使用する作業フォルダを指定します。
デフォルト: $PSScriptRoot (このスクリプトと同じフォルダ)
必須: いいえ
例: .\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
pip install jupyterlab-language-pack-ja-JP