Windows terminal environment commands not found
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
Using the "Terminal" option under "Other" I have found that no shell program commands will run. For example... `cmd /c "ECHO 'test'"` will result in the error `cmd : The term 'cmd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.`
The same command returns `'test'` on a PowerShell terminal on the host machine.
This same behavior occurs for every external style command that I should be able to call from within PowerShell (python, pip, R, git, you name it). I've looked around but didn't find anything that appears to address this issue, so I'm wondering if there's something wrong in my setup.
I tried adding a terminado_settings config in my central config file C:\ProgramsData\jupyter\jupyter_notebook_config.py
It looks like
`c.NotebookApp.terminado_settings={'shell_command':['C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe', '-NoExit', '-Command "Set-Location ""$env:HOMEDRIVE$Env:HOMEPATH"""']}`
This doesn't seem to make a difference; and in fact, the terminal is still opening up in the notebook's location and not changing to the user-profile location. (The same launch command sent in the shell_command option was tested from a run terminal and worked as expected on the host).
I verified that the PowerShell terminal on jupyter is running as the same user as I'm testing with in my environment, and verified that the $env:PATH variable matches exactly.
My environment looks like:
python 3.7.3
notebook 5.7.8
ipython 7.5.0
powershell (in terminal AND on OS) 5.1.15063.1631
Any suggestions?
Contributor guide
Assessment
This issue has not been assessed yet.