Jaykul / Jupyter-PowerShell

Jupyter Kernel for PowerShell
Other
109 stars 17 forks source link

Installation on Linux fails trying to make kernel directory #10

Closed knoxyca closed 7 years ago

knoxyca commented 7 years ago

Line 143 references mkdir. mkdir is an application in linux, and a function on Windows.

PS /home/corbob/Jupyter-PowerShell> ./Install.ps1 -KernelFolder ~/.jupyter/kernel                                                                                        

/usr/bin/mkdir: invalid option -- 'P'
Try '/usr/bin/mkdir --help' for more information.

Should use New-Item instead of mkdir.

knoxyca commented 7 years ago

I believe the resolution will simply be to change line 143 to:

        $null = New-Item -Path (Split-Path $kernelFile) -Force -ItemType Directory