-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variables explorer not updating when running the interactive session from the editor #6993
Comments
I Have the same problem. |
Thanks for filing a bug and sorry for the trouble. This is an oversight and is due to the fact that our variable explorer is populated based on an active notebook editor (and the interactive window contains an embedded notebook editor). The desired behavior is for the variable explorer for the interactive window to be populated based on a visible but not active interactive window, and to remain populated when focus is placed in a #%% file. |
On restart the variable explorer doesn't get cleared for the interactive window either; it should. |
@thor4 If you reload VS Code after toggling that setting to 'false', you should get back the old interactive window behavior. That will be a temporary fix. The current plan is to have the variable explorer in the bottom panel, and this is also how the variable explorer for native notebooks works. An alternative would be have VS Code provide a grid view and render that as part of the interactive composite editor. Please consider filing a feature request on https://github.com/microsoft/vscode (fyi @rebornix) |
Can I just say that I love the "old" style and desperately want it to always be an option. |
Thanks, I will look at the feature request option when I get some time. If someone is able to do it before me, please link here so I and others can provide support. Otherwise I will link here when I am able to do it. In the meantime, I was able to reproduce the issue of all variables disappearing completely. If you right click on the bottom panel and move it to the right of the screen, all variables disappear, including the table styling and everything. Trying to move it back to the bottom of the screen does nothing. You have to completely close out of the interactive window and restart it. Please let me know if you need further information. |
@thor4 Thanks for the clear repro steps, looks like it actually impacts regular Jupyter notebooks too, I've created #7065 to track that bug. |
@mosierbryon Thanks for the feedback--it would help us to understand why the old style is better. Are you referring to the old interactive window all up, or the old variable explorer (embedded in the interactive window) specifically? What about it do you prefer? |
Related: On my machine the whole new interactive window and variable explorer is very buggy.
|
Hi @joyceerhl, I'm referring to the variable explorer embedded in the interactive window. For me it's the most efficient use of space. The script has the left 2/3 of the screen and the interactive window has the other 1/3. |
Also, opening a big variable in the Data Viewer is super slow. I work a lot with big np arrays (~100000:~10:~100), and I can't use the Variable Explorer from VSCode properly because some don't even open and others takes forever. |
@JoschD You will also need to reload VS Code after that setting update. Additionally that setting is a user-level setting, so please ensure that you are adding it to your user settings and not your machine settings. Please let us know if that doesn't work! |
Environment data
Expected behaviour
When a code segment is run from the editor in the interactive window, the variable list in the variables explorer would reflect those changes that occur in the interactive window.
Actual behaviour
The variable list in variables explorer does not update after running code in the interactive window from the editor. It updates after clicking on the interactive window; the variable values may reflect previous states of those variables in the meantime.
Steps to reproduce:
Demo reproducing the issue:
Logs
No output
The text was updated successfully, but these errors were encountered: