Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use powershell core on Windows 10 #35

Open
exactmike opened this issue Jan 9, 2020 · 3 comments
Open

use powershell core on Windows 10 #35

exactmike opened this issue Jan 9, 2020 · 3 comments

Comments

@exactmike
Copy link

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
Copy link
Owner

vors commented Feb 15, 2020

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
Copy link

mi-hol commented Sep 4, 2020

@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
Copy link

mkanet commented Dec 10, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants