I am using JModelica for simulation of Modelica models. The JModelica.org Python interface enables users to use Python scripting to interact with Modelica models; but JModelica.org is not only a Python package/library - Python packages are a part of JModelica and not standalone. If you open IPython.bat with JModelica - it call C:\JModelica.org-2.0\setenv.bat
. setenv.bat
defines and sets different environmental variables including set PYTHONPATH=%JMODELICA_HOME%\Python;%PYTHONPATH%
where all the required site-packages are located.
I like to use Anaconda/Spyder for developments and especially for debugging, so it would be great to use JModelica in Spyder. My naive idea would be to create a new environment in Anaconda and use the Intepreter, IPthon, the PYTHONPATH (which is created when /JModelica.org/IPython.bat
is called) etc. from JModelica.
I know how to create a new environment in Anaconda and how to start Python within that environment. But it does not work.
I also tried to change the settings within Spyder
Another idea is to use the startup file for IPyhon.