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.

Jupyter Lab - Host getting stuck after executing Out-ConsoleGridView

See original GitHub issue

Describe the bug

Basically, executing the cmdlet Out-ConsoleGridView (OCGV) sends the results to where the Jupyter host is running.

You can’t use neither the “sec” key nor the OCGV “F9” key to clear it.

It will only execute the command once, then it get stuck. Select .NET PowerShell notebook, and enter:

dir | ocgv

This works!

Enter a second command:

dir | select name | ocgv

At this time, .NET PowerShell stays “Busy” and won’t process the command.

Did this error occur while using dotnet interactive?

  • [PowerShell] .NET Jupyter Notebook

Screenshots

If applicable, add screenshots to help explain your problem. (See attached Image) OCGV_01_2020-03-23_14-00-52

Please complete the following:

Even after the update, I’m getting the same issue: Tool ‘microsoft.dotnet-interactive’ was successfully updated from version ‘1.0.116704’ to version ‘1.0.117001’.

  • OS
    • Windows 10 PS C:\Users\max_t> $PSVersionTable

Name Value


PSVersion 7.0.0 PSEdition Core GitCommitId 7.0.0 OS Microsoft Windows 10.0.18363 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0 - [ ] macOS - [X] Linux (Please specify distro) : NAME=“Ubuntu” VERSION=“18.04.4 LTS (Bionic Beaver)” ID=ubuntu ID_LIKE=debian PRETTY_NAME=“Ubuntu 18.04.4 LTS” VERSION_ID=“18.04” HOME_URL=“https://www.ubuntu.com/” SUPPORT_URL=“https://help.ubuntu.com/” BUG_REPORT_URL=“https://bugs.launchpad.net/ubuntu/” PRIVACY_POLICY_URL=“https://www.ubuntu.com/legal/terms-and-policies/privacy-policy” VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic - [ ] iOS - [ ] Android

  • Browser
    • Chrome
    • Edge
    • Safari
  • Frontend
    • Jupyter notebook
    • Jupyter lab
    • nteract

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
TylerLeonhardtcommented, Mar 24, 2020

We will be investigating an Out-GridView in Jupyter but we can’t use Out-ConsoleGridView for this. It’s a totally different technology stack.

1reaction
TylerLeonhardtcommented, Apr 29, 2020

I’m not really sure how .NET Interactive can get around this. It’d be the same behavior if you pop a GUI like with WPF or WinForms (or real Out-GridView). Considering the restart kernel is available to unblock users who get into that position, I think we can close this.

Plus, Out-ConsoleGridView has been fixed to warn you about running it in .NET Interactive.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter notebook not running code. Stuck on In [*]
It is possible that you are running an infinite loop within the kernel and that is why it can't complete the execution. Try...
Read more >
IPython & Jupyterlab: kernel gets "stuck" after a long- ...
After I execute a long-running cell that loads a huge object in Jupyterlab using the IPython kernel, the kernel seems to get “stuck”...
Read more >
Jupyter notebook/Lab not running code. Stuck on In [*]
It goes to next cell without execution of current cell. It only works after I reset Kernel; but it's tiring to do it...
Read more >
Solve problems with Jupyter Notebooks
In the notebook toolbar, click Kernel, then Restart; Try testing your kernel by running a print statement in one of your notebook cells....
Read more >
Data Science Workspace Troubleshooting Guide
JupyterLab Notebook query status stuck in execution state. A JupyterLab Notebook may indicate a cell is in the executing state, indefinitely ...
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