I am testing VS code and I like it very much. But I have an issue with a Python module.
The module is xspec
(https://heasarc.gsfc.nasa.gov/docs/xanadu/xspec/python/html/index.html). The issue is that VS code does not recognize the module, underlining in red all the functions.
This is probably because xspec
needs to be initialized before using it. To inizialize it, an entire software has to be initialized (https://heasarc.gsfc.nasa.gov/docs/software/heasoft/). Basically, every time I need the xspec
module I have to inizialized the heasoft sofwtware before running python, otherwise the module is not recognized.
There is a way to solve it? Or there is a way to add exceptions to the VS code highlining errors?