PowerShell Kernel - Focus of apps or prompts
See original GitHub issueDescribe the bug
Creating a new notebook with the PowerShell kernel and finding that prompts or app windows are not coming into focus when being called from the notebook or from a PowerShell terminal (within JupyterLab).
Did this error occur while using dotnet interactive
?
- .NET Jupyter Notebook
Screenshots
An example use of calling this command from a Windows 10, with Hyper-V via a PowerShell notebook:
vmconnect $env:COMPUTERNAME $vmName
If you open a new terminal, selecting PowerShell and then just enter Get-Credential
you will see this result:
(Windows Terminal in a PowerShell 7 session is how Jupyter Lab was started.)
Upon tapping on the Windows Terminal app I’m giving this view:
Please complete the following:
- OS
- Windows 10
- macOS
- Linux (Please specify distro)
- iOS
- Android
- Browser
- Chrome
- Edge
- Safari
- Frontend
- Jupyter notebook
- Jupyter lab
- nteract
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Optimizing your $Profile - PowerShell Team
Optimizing your $Profile. Your PowerShell Profile allows you to customize your PowerShell session and runs at startup.
Read more >Public Preview of PowerShell Support in Jupyter Notebooks
There's currently no way to prompt the user in .NET Interactive. This means cmdlets like Read-Host and Get-Credential won't work.
Read more >Do PowerShell ISE scripts produce system calls altering ...
If I run something in an IDE, I have always assumed that no system calls are made, meaning the script isn't communicating with...
Read more >New-Service (Microsoft.PowerShell.Management)
If you type a user name, this cmdlet prompts you for a password. Credentials are stored in a PSCredential object and the password...
Read more >windows 10 - How do I change "Open with Powershell" to " ...
In the Taskbar and Start Menu Properties window, go to the Navigation tab and uncheck the Replace Command Prompt with Windows PowerShell option....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks…potentially an early closure of this issue but this PR https://github.com/dotnet/interactive/pull/202 will allow for interactive prompting going forward
Just a note that using that command in a notebook does not work…or is it in an upcoming release this will work?