obsidian-execute-code icon indicating copy to clipboard operation
obsidian-execute-code copied to clipboard

[FEATURE] Virtual Environment for Python

Open vladartym opened this issue 10 months ago • 3 comments

It would be nice to be able to create a virtual environment for example using pipenv to install and create packages just in obsidian

In the settings a little terminal window maybe that allows you to install plugins or even just setup a folder for where the virtual environment to live.

Please let me know if I overlooked something, or if this is even possible. Thanks 😊

vladartym avatar Apr 26 '24 18:04 vladartym

Hi, you can already use virtual environments - you just need to create them yourself and copy the link to your venv into the settings. You could even create and maintain the virtual environments that you use by using bash code blocks in a note.

But of course it would be easier to have a centrally managed option in the settings, so maybe we can implement it in the future.

twibiral avatar Apr 26 '24 19:04 twibiral

Great thanks for this! Would I just paste it in "python path"?

vladartym avatar Apr 26 '24 19:04 vladartym

Yes, exactly :) if you open the venv folder there should be some file could python.exe or something similar. Just copy the path to that file and it should work

twibiral avatar Apr 26 '24 21:04 twibiral