jupyter-powershell icon indicating copy to clipboard operation
jupyter-powershell copied to clipboard

use powershell core on Windows 10

Open exactmike opened this issue 5 years ago • 3 comments

it doesn't look like there's a way to run this with PowerShell Core on Windows. Am I missing something? I've tried uninstalling the powershell-kernel and then reinstalling with 'python -m powershell_kernel.install --powershell-command pwsh' but that seems to have no effect - my notebooks still run Windows Powershell.

exactmike avatar Jan 09 '20 01:01 exactmike

That should do the trick. My guess would be that jupyter uses another installation of python. If you take a look at the https://github.com/vors/jupyter-powershell/blob/master/powershell_kernel/install.py#L105 and track down what happens, you may be able to debug this.

vors avatar Feb 15 '20 16:02 vors

@vors, I got the same issue using Azure Data Studio 1.21.0 and jupyter notebook server 6.1.3

In ADS I needed to switch 'Terminal' to pwsh 7.0.3 but then ADS is stuck in 'Loading kernels'

jupyter notebookserver is running on this version of Python: Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)].

Unfortunately my skills are not good enough to debug & track down what happens :(

mi-hol avatar Sep 04 '20 08:09 mi-hol

Could someone please help.. I'm using Windows 10 PC with regular PowerShell ver 5.1. I only have a single installation of Python version 3.7.4. After I run the command pip install powershell_kernel, Jupyter still can't see the PowerShell kernel. It can only see the Python & PHP kernels I previously installed.

I didn't run python -m powershell_kernel.install --powershell-command pwsh since I wasn't sure what that would do. I didn't want to install another PowerShell runtime on my machine (if that's what it does).

Is there a step I'm missing? The only thing I did was install powershell_kernel via PIP.

EDIT: Opps.. it turns out I also had to run the subsequent command python -m powershell_kernel.install. Problem resolved!

mkanet avatar Dec 10 '20 06:12 mkanet