-
Notifications
You must be signed in to change notification settings - Fork 441
.Ipynb in VS Code has long delay after printing #1832
Copy link
Copy link
Closed
Labels
Area-PerformanceArea-Polyglot Notebooks ExtensionImpact-MediumbugSomething isn't workingSomething isn't working
Description
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()
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

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.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-PerformanceArea-Polyglot Notebooks ExtensionImpact-MediumbugSomething isn't workingSomething isn't working