hoangKnLai / vscode-ipython

VSCode Extension integrating Editor with IPython console.
MIT License
18 stars 6 forks source link

Variable explorer #42

Open raphaelchinchilla opened 1 year ago

raphaelchinchilla commented 1 year ago

This is a great package and I really love it. I have been trying to find something that works as well as the Spyder IDE but on VS Code, and this seems to do the job.

I was wondering, how hard would it be to include a variables explorer like in Spyder? The VS Code 'Interactive mode' has one of those, but it really does not work very well

Another feature that would be great would be for the extension to have a 'plots' pane where all the plots go to

hoangKnLai commented 1 year ago

Hi, thank you for the nice feedback 😀.

I was wondering, how hard would it be to include a variables explorer like in Spyder?

Currently the ipython terminal is text only. Meaning the interface between vscode and ipython terminal can only be text like that of a standard REPL. To implement a variable explorer, the interface will have be programmatically. I'm exploring an option for that in #29. It is a long term option so, for now, have you try using the magic command %whos?

Another feature that would be great would be for the extension to have a 'plots' pane where all the plots go to

Here is my current note on this (https://github.com/hoangKnLai/vscode-ipython/issues/29#issuecomment-1705686992). The solution, if there is one, will be a long term thing. Temporarily, have you try saving the figure as png and then open the saved figure with VSCode? This removes the interactive figure option but every time you update the png, the panel VSCode open the png in do update the rendering automatically.

raphaelchinchilla commented 1 year ago

I had not seen #29! Honestly, most of what you comment there is what I want the most. If you ever get around to also implement a variables explorer, that would be great :)