Closed jjaredrides closed 1 year ago
@jjaredrides On "Console 1/A" in Spyder, can you see if modelx and spyder-modelx are installed by:
>>> import modelx
>>> import spyder_modelx
Here's what happens. I think I probably need to install Spyder through PIP - via the virtual environment according to the instructions. https://docs.spyder-ide.org/current/installation.html
import modelx
import spyder_modelx
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
OK then both are installed. Can you also check if spymx-kernels is also installed?
Yes, I see a folder for spymx_kernels.
I think spyder-modelx is not installed in the environment where Spyder is running. Did you install Spyder from the installer available from Spyder's site?
I installed it from Spyder's website (e.g. downloaded it) vs I think I should use PIP to install it to my virtual environment.
The manual says that the Spyder installed from the installer doen't support third-party plugins.
So what do you recommend? Should I create a new environment for Spyder modex and install Spyder in that folder? Or switch back to using Anaconda?
Anaconda or WinPython works.
Thank you! The problem is now solved. I really appreciate your help and I find your modelx library absolutely fantastic!
Description of your problem
Basically: spyder is unable to find the modelx plug-in.
I updated my python interpreter from anaconda to pyenv and am using virtual environments.
I downloaded spyder (e.g, not from the anaconda prompt) and I updated my interpreter and Path to reference my specific virtual environment where modelx and spyder-modelx was downloaded to.
The Ipython console is able to find the modelx library (e.g. no error comes up when I type "import modelx as mx")
For the PythonPath - I added a userpath that references my specific virtual environment where the modelx and spyder-modelx libraries are located.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Please provide any additional information below
Versions and main components