Vscode-jupyter: Variable explorer pane "flashing" - refreshing with every click when run by line enabled

Created on 29 May 2020  路  7Comments  路  Source: microsoft/vscode-jupyter

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Create any test code that has updating variables
  2. Open variable explorer
  3. Run by line
  4. Every click causes the entire pane to refresh as opposed to just updating the variables

Actual behavior

Variable Explorer Pane Flashing

Expected behavior

Values in the variable explorer should be the only thing updating, not the whole pane refreshing with every click. If not possible, performance should be much faster such that it is less noticeable to user. Needs to be more fluid.

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

bug

Most helpful comment

This is likely a side effect of the variable explorer refresh only working when execution count changes. Refresh from the debugger likely deletes all variables to work around this. I should have instead added another property that was step count or something so that variables could be refreshed in place.

All 7 comments

Looks like a bug at our end, we seem to be clearing it and then relaoding it.
Cuz we can see a temporary message No variables defined.

This is likely a side effect of the variable explorer refresh only working when execution count changes. Refresh from the debugger likely deletes all variables to work around this. I should have instead added another property that was step count or something so that variables could be refreshed in place.

Thanks, saved me from debugging, was in the process of compiling webviews.

In our QPs, this came up over and over again. It makes it really difficult to use Run-by-line and actually see what's happening.

and actually see what's happening.

How is that? Does it take too long to refresh? It doesn't resize anything when this happens so you just have to wait. The wait (after we fix the flash) will still be the same amount of time though.

They want to watch variables changing. As it works right now, the scroll position is reset and the flash is distracting if they are just checking to see if a variable is changing.

Validated. Doesn't flash anymore when stepping by line with variable changes.

Was this page helpful?
0 / 5 - 0 ratings