# ParaView - Scipy Module

**URL:** https://discourse.paraview.org/t/paraview-scipy-module/2578
**Category:** ParaView Support
**Created:** [September 17, 2019, 6:47pm UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578 "2019-09-17T18:47:23Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![furkankurtoglu](https://discourse.paraview.org/user_avatar/discourse.paraview.org/furkankurtoglu/32/2037_2.png) [@furkankurtoglu](https://discourse.paraview.org/u/furkankurtoglu)
#### Post date: [September 17, 2019, 6:47pm UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/1 "2019-09-17T18:47:23Z")

</div>

Hello All,

I am trying to visualize my data stored in “.mat” files. Therefore, I am planning to use python scripting with “scipy” module, which has a “.mat” input-output functions. Since “scipy” module is not installed in Paraview, I could not be able to use it. (Scipy is installed in my python via pip). I have copied and pasted scipy module and pasted to “ProgramFiles(x64)/Paraview/bin/lib/the site\_packages” . However, this time I faced the following error.

```
Traceback (most recent call last):
File “”, line 20, in
File “”, line 3, in RequestData
File “C:/Program Files/ParaView 5.7.0-RC2-Windows-Python3.7-msvc2015-64bit\bin/Lib/site-packages\scipy_ *init* _.py”, line 119, in
from scipy._lib._ccallback import LowLevelCallable
File “C:/Program Files/ParaView 5.7.0-RC2-Windows-Python3.7-msvc2015-64bit\bin/Lib/site-packages\scipy_lib_ccallback.py”, line 1, in
from . import _ccallback_c
ImportError: cannot import name ‘_ccallback_c’ from 'scipy. *lib’ (C:/Program Files/ParaView 5.7.0-RC2-Windows-Python3.7-msvc2015-64bit\bin/Lib/site-packages\scipy_lib_ *init**.py)

```

My Computer Specs: Windows 10 (64 Bit), Python 3.7, Paraview 5.7  
Is there any way to install external python modules into Paraview? If not how can I import mat files?

Thank you very much, in advance!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 18, 2019, 1:43am UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/2 "2019-09-18T01:43:55Z")

</div>

s̶c̶i̶p̶y̶ ̶i̶s̶ ̶p̶r̶e̶s̶e̶n̶t̶ ̶i̶n̶ ̶P̶a̶r̶a̶V̶i̶e̶w̶ ̶5̶.̶7̶  
Edit : scipy is NOT present in ParaView 5.7 on windows.

To answer your questions :

> Is there any way to install external python modules into Paraview?

Not yet. It should be possible in 5.8 if all goes well

> If not how can I import mat files?

Open them in matlab and save them into .vtk format

> **[vtkwrite : Exports various 2D/3D data to ParaView in VTK file format](https://www.mathworks.com/matlabcentral/fileexchange/47814-vtkwrite-exports-various-2d-3d-data-to-paraview-in-vtk-file-format)**
>
> Exports 2D/3D image volume, vector field, surface, lines, polygons, etc. to ParaView

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [September 18, 2019, 2:21am UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/3 "2019-09-18T02:21:15Z")

</div>

@mwestphal Are you sure with regards to scipy? I believe we are compiling scipy into the Linux and possibly Mac builds, but NOT the Windows one. I just checked 5.7.0-RC4 on windows (not present), and Linux (present). Also, I believe you want to import scipy, not scpipy. Anyway, scipy is not built on Windows because it requires the installation of a Fortran compiler.

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32

> > > from paraview.simple import \*  
> > > import scipy as sp  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ModuleNotFoundError: No module named ‘scipy’  
> > > import scpipy as sp  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ModuleNotFoundError: No module named ‘scpipy’

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 18, 2019, 2:22am UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/4 "2019-09-18T02:22:16Z")

</div>

You are right ! I spoke too fast. Not supported on windows sadly.

---

<div class="post-metadata">

### Author: ![furkankurtoglu](https://discourse.paraview.org/user_avatar/discourse.paraview.org/furkankurtoglu/32/2037_2.png) [@furkankurtoglu](https://discourse.paraview.org/u/furkankurtoglu)
#### Post date: [September 18, 2019, 1:00pm UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/5 "2019-09-18T13:00:12Z")

</div>

Thank you, all! I will use “.mat” to “.vtk” conversion.Thanks!

---

<div class="post-metadata">

### Author: ![leopessanha](https://discourse.paraview.org/user_avatar/discourse.paraview.org/leopessanha/32/289_2.png) [@leopessanha](https://discourse.paraview.org/u/leopessanha)
#### Post date: [May 22, 2020, 9:17pm UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/6 "2020-05-22T21:17:29Z")

</div>

Have you sucessfully converted .mat file to .vtk file? If so, how? Using MATLAB itself?

Best regards,

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 25, 2020, 1:59am UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/7 "2020-05-25T01:59:53Z")

</div>

Please read the topic :

> Open them in matlab and save them into .vtk format  
> [vtkwrite : Exports various 2D/3D data to ParaView in VTK file format - File Exchange - MATLAB Central](https://www.mathworks.com/matlabcentral/fileexchange/47814-vtkwrite-exports-various-2d-3d-data-to-paraview-in-vtk-file-format)

---

<div class="post-metadata">

### Author: ![leopessanha](https://discourse.paraview.org/user_avatar/discourse.paraview.org/leopessanha/32/289_2.png) [@leopessanha](https://discourse.paraview.org/u/leopessanha)
#### Post date: [May 25, 2020, 11:23am UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/8 "2020-05-25T11:23:07Z")

</div>

I was trying to avoid using paid software such as MATLAB =/

---

<div class="post-metadata">

### Author: ![limliangjin](https://discourse.paraview.org/user_avatar/discourse.paraview.org/limliangjin/32/3917_2.png) [@limliangjin](https://discourse.paraview.org/u/limliangjin)
#### Post date: [May 28, 2020, 10:05am UTC](https://discourse.paraview.org/t/paraview-scipy-module/2578/9 "2020-05-28T10:05:53Z")

</div>

Is the current release version 5.8 already able to import external python modules into Paraview?
