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.

Out-Gridview in .NET (PowerShell) kernel fails

See original GitHub issue

Hello

Describe the bug

When I try to use Out-Gridview in a code cell of a notebook with .NET (PowerShell) kernel it fails.

Is there any way to use Out-Gridview in a code cell when the notebook kernel is .NET (PowerShell)? I use Out-GridView a lot as a selection tool when the kernel is PowerShell and would like to be able to do it also with .NET (PowerShell). Not being able to do it is something that stops me from adopting the latter.

The problem exists in Azure Data Studio, Jupyter Notebook and VSCode. For more info see: Notebook, Out-Gridview in .NET (PowerShell) kernel fails #17105

In case it is not currently possible, will you be able to advise me where to make the request?

Regards

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): 1.0.255902+b0afbdc47dec91e62b0c5cb587a0f2c24242eca8

  • OS
    • Windows 11
    • Windows 10
    • Windows Server 2022
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify) Azure Data Studio

Screenshots

md5=6d18b72a66c0a13874e22c99f616353c

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
houstencommented, Feb 21, 2023

This would be a tough choice - I love the multi-language ability here, especially with SQL and variable sharing but out-gridview is a vital selector tool…

Is there a way to load WPF dlls in the same way one loads other windows system dlls in powershell? The requirement to run such notebooks on widows is not a limitation in our environment.

1reaction
daxian-dbwcommented, Apr 29, 2022

Get-Credential command was changed in PowerShell Core to not use the pop-up windows, but instead provides the console experience: image

In .NET Interactive Jupyter Notebook, it works as the follows:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Out-GridView Returns - PowerShell Team
Sometimes, you need to automate infrequent but complex tasks where filters may be error-prone. Out-GridView can be used as a filtering tool for ......
Read more >
PowerTip: Cause Out-GridView Cmdlet to Pause
How can I pause the execution of my Windows PowerShell script while the Out-GridView cmdlet displays a grid view?
Read more >
Use PowerShell to Work with the .NET Framework Classes
In the video, I discuss the Get-DeviceDriverServices.ps1 script and demonstrate working with the Out-GridView control. If you use Silverlight to ...
Read more >
Sort Output Before Sending to PowerShell Out-GridView
Summary: Learn how to sort data before you send it to the Windows PowerShell Out-GridView cmdlet. Microsoft Scripting Guy, Ed Wilson here.
Read more >
Understanding Non-Terminating Errors in PowerShell
Summary: Ed Wilson, Microsoft Scripting Guy, talks about understanding non-terminating errors in Windows PowerShell. Hey, Scripting Guy!
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