question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PowerShell Kernel - Focus of apps or prompts

See original GitHub issue

Describe 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

image

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: image

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

image

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:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SydneyhSmithcommented, Feb 28, 2020

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

0reactions
wsmeltoncommented, Feb 28, 2020

Just a note that using that command in a notebook does not work…or is it in an upcoming release this will work?

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found