![]() Applications/ParaView-5.10.0-RC1.app/Contents/bin/pvpython \ The command line below illustrate how a SimpleCone example can be run on a Mac computer where ParaView 5.10 has been installed. import # When using downloaded ParaView from KitwareĪfter that we can import trame and start using it (assuming we run our application with the -venv /path/to/venv/with/trame argument). Then later you can simply use python rather than pvpython conda activate pv-envĪt the very top of our scripts, we need to import our helper script so the -venv path/to/venv can be processed. conda create -n pv-env -c conda-forge paraview That way you can create a virtual-environment that can contain both ParaView and trame by doing the following. ![]() When using the conda approach you won’t need to download ParaView as it will get installed by conda for you. (So far 5.10 and 5.11 use Python 3.9)Ĭonda provide many open-source packages and ParaView is part of their offering. The python you use for creating your virtual-environment must match the Python version that comes with ParaView.Since ParaView includes vtk, any VTK example can be run with ParaView assuming the proper code is used to handle the virtual-env loading to get trame inside our Python script.We can not use our virtual environment with a vtk as our vtk library will conflict with the one inside Paraview.We can add more Python packages into ParaView by creating a virtual environment and then activating it inside the application using the import line import or by using our local version and importing it.įirst, we need to setup the ParaView add-on python environment, in which we will only install trame, but we could add any other Python libraries that are not included in the ParaView bundle. ParaView comes with its own Python, which may be missing some dependencies for the desired usage. ParaView 5.10 can be downloaded from here.
0 Comments
Leave a Reply. |