vors / jupyter-powershell

PowerShell language kernel for Jupyter
MIT License
132 stars 26 forks source link

use powershell core on Windows 10 #35

Open exactmike opened 4 years ago

exactmike commented 4 years ago

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.

vors commented 4 years ago

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.

mi-hol commented 3 years ago

@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 :(

mkanet commented 3 years ago

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!