Skip to content

Latest commit

 

History

History
75 lines (62 loc) · 3.39 KB

File metadata and controls

75 lines (62 loc) · 3.39 KB

WinPython

Using Powershell on Jupyter Notebook on WinPython.

インストールするソフトウェア

インストール方法

.\WinPython.ps1 [スクリプトオプション]

スクリプトオプション

  • WinPythonVersion
    WinPythonのバージョンを指定します。
    必須: いいえ
    デフォルト: 3.9
    例: .\WinPython.ps1 -WinPythonVersion 3.10

  • WinPythonType
    WinPythonタイプを指定します。
    必須: いいえ
    デフォルト: dot 例: .\WinPython.ps1 -WinPythonType cod

  • WinPythonPath
    WinPythonのインストールパスを指定します。
    必須: いいえ
    デフォルト: $env:LOCALAPPDATA\Programs\WinPython
    例: .\WinPython.ps1 -WinPythonPath C:\PathTo\WinPython

  • InstallPwsh7SDK
    このスイッチオプションを指定すると、 Jupyter-PowerShellSDKをインストールします。
    例: .\Anaconda.ps1 -InstallPwsh7SDK

  • InstallPortableGit
    このスイッチオプションを指定すると、 PortableGitをインストールします。
    例: .\WinPython.ps1 -InstallPortableGit

  • InstallDotnetInteractive
    このスイッチオプションを指定すると、 .Net Interactiveをインストールします。
    例: .\WinPython.ps1 -InstallDotnetInteractive

  • PortableGitPath
    PortableGitのインストールパスを指定します。
    必須: いいえ
    デフォルト: $env:LOCALAPPDATA\Programs\WinPython\PortableGit
    例: .\WinPython.ps1 -InstallPortableGit -PortableGitPath C:\PathTo\PortableGit

  • CleanupDownloadFiles
    このスイッチオプションを指定すると、インストール後にダウンロードしたファイルを削除します。 例: .\WinPython.ps1 -DoNotCleanupDownloadFiles

  • WorkingFolder [Folder Path]
    スクリプトで使用する作業フォルダを指定します。
    デフォルト: $PSScriptRoot (このスクリプトと同じフォルダ)
    必須: いいえ
    例: .\WinPython.ps1 -WorkingFolder C:\pathto\folder

  • AddStartMenu このスイッチオプションを指定すると、WinPythonバイナリをWindowsスタートメニューに追加します。
    例: .\WinPython.ps1 -AddStartMenu

インストール例

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
pip install jupyterlab-language-pack-ja-JP