How to change Jupyter shell

I'm trying to run a notebook with a WinPy env, but the Jupyter server fails to initialize. The reason for this is because this Python is not in my path and I don't want to. When PyCharm tries to call python -m in the folder of python.exe, it does using a PowerShell and returns the error that the term "python" is not recognized. I need to change this to be called with cmd.exe.

4 comments
Comment actions Permalink

Hi, could you provide more information about the issue? 

If you're using managed jupyter server, you must have project interpreter configured, and python must be in PATH.

If you're using configured jupyter server, python is not necessary, but the shell shouldn't be relevant as well.

Could you copy-paste the log from Jupyter server tab?

0
Comment actions Permalink

Hello,

The issue is that I cant start a local Jupyter server from a python that is not in PATH.

This is the error. The python.exe could not start:

To confirm that this issue is due to PowerShell, if I go to Manage App Execution Aliases and allow the app installer for Python, I get:

 

0
Comment actions Permalink

Are you able to start the server by running this command directly from the terminal?:

0
Comment actions Permalink

I have tried this commmand directly from Windows PowerShell and the same errors occurs in both cases. Instead, running the command in the Windows CMD, it works.

Edit: Just found out that for Windows PowerShell to work, it is missing and "&" in the beginning of the command. It should be:

& "C:\Users\alan-\Desktop\Nova pasta\WPy64-3950\python-3.9.5.amd64\python.exe" -m jupyter notebook --no-browser --notebook-dir=C:/Users/alan-/OneDrive/mestrado

0

Please sign in to leave a comment.