Intellisense

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
johannesg
Posts: 2
Joined: Sun Jan 23, 2022 6:17 am

Intellisense

Post by johannesg »

Hello!

I just started to use OpenSeesPy. I just installed it through the instruction on the homepage, see link here:
https://openseespydoc.readthedocs.io/en ... piwin.html

I am using OpenSeesPy in Visual studio code. It works, I can run some examples from the homepage.

My question is:

Why does "Intellisense" not work with my installation? Do I have to do something extra to make that work?

Note that I have some knowledge in Python, and I have been programming/scripting a lot for the last 3 years. But this is a problem that I have never seen before.

I appreciate if somebody here could guide me.

Best regards
Johannes G
AsongHu
Posts: 1
Joined: Sun Sep 25, 2022 6:01 pm

Re: Intellisense

Post by AsongHu »

I had the same problem and here are some solutions:
1. Using PyCharm instead of Visual Studio Code is the most convenient way to solve the problem.
2. Another way is to change VSC's Python language serves from Pylance to Jedi.
3. The last way is to generate a .pyi file of OpenSeesPy and put the .pyi file together with opensees.pyd. You can find more details about generating .pyi files here https://stackoverflow.com/questions/356 ... omatically.
johannesg
Posts: 2
Joined: Sun Jan 23, 2022 6:17 am

Re: Intellisense

Post by johannesg »

Thank you for this. I will try this out.

I appreciate your help
alaalawi
Posts: 1
Joined: Tue Oct 04, 2022 2:01 am
Contact:

Re: Intellisense

Post by alaalawi »

AsongHu wrote: Sun Sep 25, 2022 6:37 pm I had the same problem and here are some solutions:
1. Using PyCharm instead of Visual Studio Code is the most convenient way to solve the problem.
2. Another way is to change VSC's Python language serves from Pylance to Jedi.
3. The last way is to generate a .pyi file of OpenSeesPy and put the .pyi file together with opensees.pyd. You can find more details about generating .pyi files here https://stackoverflow.com/questions/356 ... omatically.
Your solution was very complete
thank you very mush
Post Reply