Skip to content

Commit f93d4a2

Browse files
committedFeb 8, 2021
Update doc for Python/VTK version
·
v0.0.9v0.0.4
1 parent 1a87c95 commit f93d4a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ Run the demo:
108108
python app.py
109109
```
110110

111+
### Python environments
112+
113+
Depending on your Python environment, you may run into deployment issue related to the vtk version that get pulled in.
114+
115+
Ideally we want a version of vtk equal or newer than 9. When using such version of VTK, dash-vtk won't even try to load the rendering module of VTK and if OpenGL is not available on your system everything will still be fine.
116+
117+
On the other hand, if you are running Python 3.6 or less and you don't upgrade your pip version you will get vtk 8. With vtk 8, there is no way to prevent the loading of the GL library which means that you will have to install libGL on your system. The way [Heroku](https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-apt) and [dash-enterprise](https://github.com/plotly/dash-sample-apps/blob/master/apps/dash-vtk-explorer/apt-packages) handle it is slightly different but technically you will have to install `libgl1-mesa-glx` via some `apt` infrastructure.
118+
111119
## References
112120

113121
You can find the complete API reference in [`docs/REFERENCES.md`](https://github.com/plotly/dash-vtk/blob/master/docs/REFERENCES.md) for each of the following components:

0 commit comments

Comments
 (0)
Please sign in to comment.