vscode-jupyter
vscode-jupyter copied to clipboard
Spyder-Like variable explorer
Feature: Variable explorer
The variable explorer in the notebooks is a important part of many data science IDEs, though vscode is not a full blown IDE I prefer it over others, its amazing. Vscode has a amazing features, just that the variable explorer doesn't feel/look so good, an explorer like in spyder or even Pycharm would be a nice feature and I'm sure many ppl would like that interface. Thanks
Thanks for your feedback @YashKarthik. We'll discuss this feature in our next triage.
👍🏻👍🏻 @DavidKutu
@greazer , the variable explorer in the vscode Jupiter notebooks cover a lot of vertical space, whereas it'll be more convenient if it were on part the activity bar and have a squarish panel when opened. Also a data frame viewer like one in Jupyterlab would also be a nice feature.
Spyder has the very useful ability of viewing all kind of Python objects in the Variable Explorer. Currently, VS Code's Variable Explorer is very limited compared to the type of objects one can view in Spyder. For example, if I create Python class and then create a variable that stores an instance of that class, the Spyder variable explorer lets me double click on the instance variable and see all attributes. And I can keep descending into the hierarchy by double clicking. For example, if an attribute stores a list, I can double click on the attribute and view all element of the list. If the attribute is a nametuple or dict or set some other built-in Python object, I can double click on it and it open the view of that object. You can also actually edit values within a list, or dict or whatever and then interact with the edited values in the kernel. My understanding is that MATLAB behaves similarly (I don't know from personal experience). But the variable Explorer is one of the most-loved features in Spyder, so adding similar capabilities to VS Code would be great!
Yes! Though VS Code has come a long way, the variable explorer is still the reason I chose Spyder every time for Data Science tasks.
Me too. I find VS Code's current Variable Explorer is of super-limited use to me. However, VS Code offers so many other great features that Spyder does not. So, if VS Code could just close this one huge gap, it would be fantastic.
Me too. I find VS Code's current Variable Explorer is of super-limited use to me. However, VS Code offers so many other great features that Spyder does not. So, if VS Code could just close this one huge gap, it would be fantastic.
The above comments are very relevant and the redirected issue is closed. The variable explorer is needed for both the python interactive window as well as the normal python window.
Py charm has a good variable explorer and Virtual environment set up.
I agree with them. So please improve the 'variable explorer'
I agree - this is especially useful for matrices and csv / table type data. The one reason I use spyder (if I'm using Python) or use R studio (if I'm using R) instead of VS Code for scientific computing, data science, or image processing.
I agree, I'd love to be able to use VS Code for scientific python since it's far superior to Spyder in other aspects but a working variable explorer and data viewer is an absolute requirement for a scientific IDE. The current VS Code one has too limited capabilities and also is far too slow to be useful.
@DonJayamanne @DavidKutu Hi guys, just to expand upon the request.... It would be great if the focus wasn't only on "data viewing". yes, that's important, but a more general, all-purpose variable viewer would be useful, where users could see all attributes and methods of each object alive in the kernel. This is what Spyder offers. It's not just a viewer for data objects.... it's a viewer for ALL variables, not matter their type. I believe that Spyder pickles objects in order to view their attrs and methods in the Variable Explorer. You can double click on any object and keep descending into the hierarchy of the objects inside of them. And, regarding data viewing, currently complex numbers are not supported in the Data Viewer. This is a requirement for my field of engineering.
Yep I agree with this. Also make it so the viewer refreshes the values on any update to the variable. Currently in VS Code I have to keep opening a new tab every time the values change
On Sat, May 8, 2021, 9:21 AM jbiz25 @.***> wrote:
@DonJayamanne https://github.com/DonJayamanne @DavidKutu https://github.com/DavidKutu Hi guys, just to expand upon the request.... It would be great if the focus wasn't only on "data viewing". yes, that's important, but a more general, all-purpose variable viewer would be useful, where users could see all attributes and methods of each object alive in the kernel. This is what Spyder offers. It's not just a viewer for data objects.... it's a viewer for ALL variables, not matter their type. I believe that Spyder pickles objects in order to view their attrs and methods in the Variable Explorer. You can double click on any object and keep descending into the hierarchy of the objects inside of them. And, regarding data viewing, currently complex numbers are not supported in the Data Viewer. This is a requirement for my field of engineering.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-jupyter/issues/1148#issuecomment-835382165, or unsubscribe https://github.com/notifications/unsubscribe-auth/APW66EN2SK7P7GY2OS4XEX3TMVCGNANCNFSM4TVCLQNA .
What you're after is mentioned here:https://github.com/microsoft/vscode-jupyter/issues/5532
- Variable explorer for all data types, dictionary, plots, widgets, pickle objects, etc.
- and then bring able to explore each variable (expanding ducts/pickled objects, opening plots in separate windows, opening widgets in a separate windows)
@jbiz25, @NikilXYZ Please upvote #5532 that issue if that's what you're after
That's exactly it. Will upvote. Thanks @DonJayamanne
Thank you for picking up! as this drawback of vscode is the only reason I still use intellij right now, upvote both issue! #5532
Could not agree more. Looking forward to an upgraded variable explorer in VS Code!
As far as I know, the current variable explorer also does not offer a way to search for a variable by name. When there is many variables, scrolling in a small window becomes tedious and it would be great if this feature would also be considered.
another vote here!
Vote for a better variable explorer too. The color indicating the size of variable is really helpful!
+1. Also, I'm wondering if you couldn't "just" re-use the variable viewer that is used in the debugger? I find it 10x better in terms of interactivity than the current "JUPYTER: VARIABLES" pane.
+1. Also, I'm wondering if you couldn't "just" re-use the variable viewer that is used in the debugger? I find it 10x better in terms of interactivity than the current "JUPYTER: VARIABLES" pane.
indeed, 90% I am starting the debugger only to view variables in better UI as a workaround - debuggers viewer is perfect! less than 10% goes out to real debugging
But the variable debugger doesn't show arrays and matrices very cleanly. Compare it to Spyder's viewer where the matrix actually shows up like a grid of rectangles, and a 3D matrix has sort of a page drop down.
On Wed, Mar 2, 2022, 7:26 AM Luca Dorigo @.***> wrote:
+1. Also, I'm wondering if you couldn't "just" re-use the variable viewer that is used in the debugger? I find it 10x better in terms of interactivity than the current "JUPYTER: VARIABLES" pane.
— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-jupyter/issues/1148#issuecomment-1056930451, or unsubscribe https://github.com/notifications/unsubscribe-auth/APW66EI2DROWEXPAKNHEWJTU55UBTANCNFSM4TVCLQNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
in current explorer, variable loading is quite slow and the viewing style is also inconvenient It'd be a huge improvement if they can add Spyder like explorer...!
I've tried to make the switch to VS Code like 20 times but every time I end up going back to Spyder. The variable explorer is amazing, and iPython being the console, being able to run any code for graphs just by highlighting a few lines of code and pressing f9, where it not only pops up in the console but stores it under plots. All great features its hard to get away from. If they could just make VS Code a little more convenient for data science in Python I'd make the jump. It's nice they added the 'interactive window' but its just a separate jupyter notebook from what you're actually working on (unless i'm misunderstanding the functionality) and it's not what I'm going for at all.
@cnw21 I've just switched to VScode from Spyder for most tasks. The interactive window has almost the same functionality as the ipython console in spyder. Highlight a code snippet in the editor and "shift+ enter" it into the interactive window. Plots can be rendered inline or in a separate window
I agree with everything that is said in the issue. The reason why I don't definitely switch from Spyder to VS Code is the variable browser. I think it is essential when creating a structure to be able to visualize it and navigate with a double-click (example: dictionary of dictionaries, etc...). I hope that this improvement in the visualization of variables will be added, as soon as it will be solved it will be the definitive tool. Thanks !!!
I reached out to these comments through google from same but I can not get an answer. Is there any update coming regarding that?
Please add a variable explorer!
More suggestions from here https://github.com/microsoft/vscode-jupyter/issues/11679
- showing a dataframe is fast
- it is opened in its own window that you can enlarge at will
- all columns are much wider and they can be even resized automatically
Please add a variable browser!!!