haochengxia / vscode-pydata-viewer

Display PyData files (.npz .npy .pkl .pth) in VSCode.
https://marketplace.visualstudio.com/items?itemName=Percy.vscode-pydata-viewer
MIT License
14 stars 8 forks source link

use selected vscode python interpreter #27

Open rossbeehlerpg opened 2 months ago

rossbeehlerpg commented 2 months ago

I use poetry, and have to tell vscode to use the virtual environment created by poetry install through the Python: Select Interpreter command. Is there any way for this extension to also use that selected interpreter? Since I use the default poetry behavior of allowing the virtual directory to be created separately from the repo directory, I can't use one setting for "vscode-pydata-viewer.pythonPath" that works for all repos.

haochengxia commented 1 month ago

Thank you for providing the details of your workflow. We appreciate your feedback and would like to let you know that we will work on supporting this scenario as soon as possible. In order to make it easier to add a fix, would you be willing to accept a solution that involves adding an option to align the Python interpreter with the setting in the VSCode Python interpreter?

Looking forward to your reply.

rossbeehlerpg commented 1 month ago

Yes, that would be acceptable. Thanks!

shaoqx commented 1 month ago

Looking forward to this new feature! Currently I'm using Python variants in conda environments and the plugin cannot find the right one to use.

shaoqx commented 1 month ago

Oh I found there is a settings option vscode-pydata-viewer.pythonPath that can fix my problem