Replies: 4 comments 1 reply
-
I just started working on a script that generates a builtins.pyi file for pylance to accomplish exactly this. I am a total beginner to both python and visual studio code so I don't know if this is best way but it's working pretty well. Right now the script runs on my dev client and i manually run it when my home assistant setup changes but it should be possible to run it in the Pyscript server environment so that it automatically keeps up to date. I will probably be able to share in a while. |
Beta Was this translation helpful? Give feedback.
-
Can we broaden the scope and also get the basics working? I now am not able to get autocompletion on the |
Beta Was this translation helpful? Give feedback.
-
I am just repinging this thread since I started using VS Code for pyscript development and especially now with Co-Pilot it is so much better compared to developing in a Jupyter notebook. I did get the remote hass kernel configured and running in VS Code. However, what is really missing is IntelliSense for e.g. entities, functions, etc. coming from the hass kernel. The Jupyter Notebook supports that, but unfortunately there does not seem to be a solution for VS Code, yet? Does anyone have any pointers? |
Beta Was this translation helpful? Give feedback.
-
Code completion is now out of the box: #771 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Was wandering if anyone knows of a way for getting autocompletions for pyscript's entities in vscode in .py files
for example, when you write input_boolean - get all the possible options
I know this is possible using jupyter, and I thought I could use vscode's jupyter extension instead of the Jupyter Notebook UI...
I can start the jupyter server and connect to it using vscode, I can even run things, by I don't have autocompletion here either
any ideas?
Beta Was this translation helpful? Give feedback.
All reactions