Skip to content

.Ipynb in VS Code has long delay after printing #1832

@jhoneill

Description

@jhoneill

Describe the bug

It takes >6 seconds to return after printing <200 characters.

Please complete the following:

.NET Interactive
© 2020 Microsoft Corporation
Version: 1.0.260601+9d1ecd3c06ba93e59bfef3842d2660c08d9e2ce5
Build date: 2021-12-18T10:36:48.0565225Z

  • OS
    • Windows 11
    • Windows 10
    • 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)

Screenshots

Here is a trivial bit of powerShell

#!time 
$sw = [System.Diagnostics.Stopwatch]::new()
$sw.Start()
1..90
"Elapsed ms:$($sw.ElapsedMilliseconds)"
$sw.stop()

image
It prints numbers 1 to 90 and gives the elapsed time by two methods the screen shot shows it took 6.4 seconds to return
image

The messages above are printed after a very short time and most of the 6.4 seconds is waiting for the control to return
Changing the time from 90 to 900 the time is given almost but it took 2:33 , which is worse than 10x the time for 10x the data.
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions