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.

When there are a large number of figures, the step of hashing output can take a long time.

See original GitHub issue

Thanks the developers for providing the same experience as native jupyter in vscode.

I recently found that when the notebook is large enough and has many figures. After executing the cell and getting the result, it will pending for a few seconds before executing the next cell. after checking the logs, it seems that the hash output is taking some time. These times are tolerable, but a little annoying.

everything 18:14:2.794: Telemetry Event : HASHED_PACKAGE_PERF Measures: {"duration":0} Props: {"isInsiderExtension":"false","ds_notebookeditor":"native","localOrRemoteConnection":"remote","isPythonExtensionInstalled":"true","rawKernelSupported":"true","installSource":"marketPlace","VSCode.ABExp.Features":"livesharecontinuousaa;reusableLinks;RemoveKernelToolbarInInteractiveWindowcf;portForwardingServiceEnabled-development;portForwardingServiceEnabled-staging;portForwardingServiceEnabled-production;jupyterTest;pylanceIndexingEnabled;NativeNotebookEditor;DFHDFSDT;jupyterEnhancedDataViewer;mindaroBinariesVersion;mindaroBinariesVersion-1.0.20210702;mindaroBinariesVersion-1.0.20210723;account-aa;config.python.pylanceLspNotebooksEnabled;shouldUseGrpcService;config.jupyter.showOnlyOneTypeOfKernel","abexp.assignmentcontext":"vsliv368:30146709;vsreu685:30147344;python383cf:30185419;vspor879:30202332;vspor708:30202333;vspor363:30204092;vsjup275:30257433;pythonvspyl392:30443607;vsjup518:30340749;vsdfh931:30280409;pythondataviewer:30285071;binariesv615:30325510;bridge0708:30335490;bridge0723:30353136;vsaa593:30376534;pylanb8912:30545647;c4g48928:30535728;dsvsc012:30540252;","isamlcompute":"false","userExecutedCell":"true"} 
everything 18:14:2.885: Telemetry Event : HASHED_PACKAGE_PERF Measures: {"duration":0} Props: {"isInsiderExtension":"false","ds_notebookeditor":"native","localOrRemoteConnection":"remote","isPythonExtensionInstalled":"true","rawKernelSupported":"true","installSource":"marketPlace","VSCode.ABExp.Features":"livesharecontinuousaa;reusableLinks;RemoveKernelToolbarInInteractiveWindowcf;portForwardingServiceEnabled-development;portForwardingServiceEnabled-staging;portForwardingServiceEnabled-production;jupyterTest;pylanceIndexingEnabled;NativeNotebookEditor;DFHDFSDT;jupyterEnhancedDataViewer;mindaroBinariesVersion;mindaroBinariesVersion-1.0.20210702;mindaroBinariesVersion-1.0.20210723;account-aa;config.python.pylanceLspNotebooksEnabled;shouldUseGrpcService;config.jupyter.showOnlyOneTypeOfKernel","abexp.assignmentcontext":"vsliv368:30146709;vsreu685:30147344;python383cf:30185419;vspor879:30202332;vspor708:30202333;vspor363:30204092;vsjup275:30257433;pythonvspyl392:30443607;vsjup518:30340749;vsdfh931:30280409;pythondataviewer:30285071;binariesv615:30325510;bridge0708:30335490;bridge0723:30353136;vsaa593:30376534;pylanb8912:30545647;c4g48928:30535728;dsvsc012:30540252;","isamlcompute":"false","userExecutedCell":"true"} 
everything 18:14:2.891: Telemetry Event : HASHED_PACKAGE_PERF Measures: {"duration":0} Props: {"isInsiderExtension":"false","ds_notebookeditor":"native","localOrRemoteConnection":"remote","isPythonExtensionInstalled":"true","rawKernelSupported":"true","installSource":"marketPlace","VSCode.ABExp.Features":"livesharecontinuousaa;reusableLinks;RemoveKernelToolbarInInteractiveWindowcf;portForwardingServiceEnabled-development;portForwardingServiceEnabled-staging;portForwardingServiceEnabled-production;jupyterTest;pylanceIndexingEnabled;NativeNotebookEditor;DFHDFSDT;jupyterEnhancedDataViewer;mindaroBinariesVersion;mindaroBinariesVersion-1.0.20210702;mindaroBinariesVersion-1.0.20210723;account-aa;config.python.pylanceLspNotebooksEnabled;shouldUseGrpcService;config.jupyter.showOnlyOneTypeOfKernel","abexp.assignmentcontext":"vsliv368:30146709;vsreu685:30147344;python383cf:30185419;vspor879:30202332;vspor708:30202333;vspor363:30204092;vsjup275:30257433;pythonvspyl392:30443607;vsjup518:30340749;vsdfh931:30280409;pythondataviewer:30285071;binariesv615:30325510;bridge0708:30335490;bridge0723:30353136;vsaa593:30376534;pylanb8912:30545647;c4g48928:30535728;dsvsc012:30540252;","isamlcompute":"false","userExecutedCell":"true"} 
everything 18:14:2.897: Telemetry Event : HASHED_PACKAGE_PERF Measures: {"duration":0} Props: {"isInsiderExtension":"false","ds_notebookeditor":"native","localOrRemoteConnection":"remote","isPythonExtensionInstalled":"true","rawKernelSupported":"true","installSource":"marketPlace","VSCode.ABExp.Features":"livesharecontinuousaa;reusableLinks;RemoveKernelToolbarInInteractiveWindowcf;portForwardingServiceEnabled-development;portForwardingServiceEnabled-staging;portForwardingServiceEnabled-production;jupyterTest;pylanceIndexingEnabled;NativeNotebookEditor;DFHDFSDT;jupyterEnhancedDataViewer;mindaroBinariesVersion;mindaroBinariesVersion-1.0.20210702;mindaroBinariesVersion-1.0.20210723;account-aa;config.python.pylanceLspNotebooksEnabled;shouldUseGrpcService;config.jupyter.showOnlyOneTypeOfKernel","abexp.assignmentcontext":"vsliv368:30146709;vsreu685:30147344;python383cf:30185419;vspor879:30202332;vspor708:30202333;vspor363:30204092;vsjup275:30257433;pythonvspyl392:30443607;vsjup518:30340749;vsdfh931:30280409;pythondataviewer:30285071;binariesv615:30325510;bridge0708:30335490;bridge0723:30353136;vsaa593:30376534;pylanb8912:30545647;c4g48928:30535728;dsvsc012:30540252;","isamlcompute":"false","userExecutedCell":"true"} 
# At this point the execution of any cell will pending, until next log is present.
everything 18:14:7.899: Telemetry Event : DS_INTERNAL.HASHED_OUTPUT_MIME_TYPE_PERF Measures: {"duration":1} Props: {"isInsiderExtension":"false","ds_notebookeditor":"native","localOrRemoteConnection":"remote","isPythonExtensionInstalled":"true","rawKernelSupported":"true","installSource":"marketPlace","VSCode.ABExp.Features":"livesharecontinuousaa;reusableLinks;RemoveKernelToolbarInInteractiveWindowcf;portForwardingServiceEnabled-development;portForwardingServiceEnabled-staging;portForwardingServiceEnabled-production;jupyterTest;pylanceIndexingEnabled;NativeNotebookEditor;DFHDFSDT;jupyterEnhancedDataViewer;mindaroBinariesVersion;mindaroBinariesVersion-1.0.20210702;mindaroBinariesVersion-1.0.20210723;account-aa;config.python.pylanceLspNotebooksEnabled;shouldUseGrpcService;config.jupyter.showOnlyOneTypeOfKernel","abexp.assignmentcontext":"vsliv368:30146709;vsreu685:30147344;python383cf:30185419;vspor879:30202332;vspor708:30202333;vspor363:30204092;vsjup275:30257433;pythonvspyl392:30443607;vsjup518:30340749;vsdfh931:30280409;pythondataviewer:30285071;binariesv615:30325510;bridge0708:30335490;bridge0723:30353136;vsaa593:30376534;pylanb8912:30545647;c4g48928:30535728;dsvsc012:30540252;","isamlcompute":"false","userExecutedCell":"true"} 

Jupyter Extension version: 2022.7.1102252217 VS Code version: Code - IVersion: 1.70.1 (user setup) Commit: 6d9b74a70ca9c7733b29f0456fd8195364076dda

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Aug 22, 2022

In addition, when the level is set to debug, it seems difficult to see the problem from the log file, which is the corresponding log of the first modified file when the level is set to everything

please ignore the output in the log , and lets focus on the problem and not necessarily the symptom

1reaction
DonJayamannecommented, Aug 17, 2022

@liuzj039 Hmm, weird, will send a custom VSIX (with a few changes) so you can test (some of the changes) this at your end

Read more comments on GitHub >

github_iconTop Results From Across the Web

5.5. Hashing — Problem Solving with Algorithms and Data ...
Our first hash function, sometimes referred to as the “remainder method,” simply takes an item and divides it by the table size, returning...
Read more >
What is hashing and how does it work? - TechTarget
A hash table stores key and value pairs in a list that is accessible through its index. Because key and value pairs are...
Read more >
A Guide to Consistent Hashing - Toptal
Consistent Hashing is a distributed hashing scheme that operates independently of the number of servers or objects in a distributed hash table.
Read more >
Hash Function in Cryptography: How Does It Work?
A hash function in cryptography is a mathematical algorithm that maps any data to a fixed length. Here's what to know about how...
Read more >
Basics of Hash Tables Tutorials & Notes | Data Structures
In hashing, large keys are converted into small keys by using hash functions. The values are then stored in a data structure called...
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