marimo-team / vscode-marimo

marimo vscode extenion
https://marketplace.visualstudio.com/items?itemName=marimo-team.vscode-marimo
MIT License
28 stars 3 forks source link

Marimo and Pixi #37

Open claudiushaag opened 1 month ago

claudiushaag commented 1 month ago

Marimo in the embedded browser is super cool!

For me, there are currently two Problems with how the marimo-extension slows down my user experience significantly.

First, the marimo extension tries to list all marimo apps embedded within the installed pixi-environments of the respective pixi project. This means, that on my machine, the "Application" Column of the extension stays empty, and I'm not able to select the notebook I would like to work on until the extension has found all marimo notebooks in the pixi-environment. During this time, almost all ressources of my laptop are allocated for vs code.

I don't see a apparent reason for listing all notebooks. I would much prefer only the ones in the local workspace. I think it would be cool, if one could at least access a "exclude" setting, where such behaviour could be altered.

Additionally, I think, this search-process induces another problem: With activated marimo-extension, Pylance starts analyzing the files in the pixi-environment, which it does not do when the marimo-extension is deactivated. This leads to another surge of files apparently being screened.

Setting:

akshayka commented 1 month ago

Thanks for reporting!

This is how we search for marimo notebooks:

https://github.com/marimo-team/vscode-marimo/blob/main/src/explorer/explorer.ts#L50-L64

Maybe this isn't the right API? Do you have a suggestion on how to search just the local workspace?