Last active
December 2, 2015 09:17
-
-
Save psychocoderHPC/c034d95c0333d766448d to your computer and use it in GitHub Desktop.
virtual python environment [matplotlib, no X-window]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Solution to solve that matplot lib not show any X window in a virtual python environment | |
| follow the [embedded guid](https://github.com/ComputationalRadiationPhysics/picongpu/blob/dev/src/picongpu/submit/titan-ornl/pythonOnRhea.profile.example) | |
| - cd ~/lib | |
| - mkdir -p python-venv | |
| - cd python-venv | |
| - virtualenv hypnos2.7.10 | |
| - source ~/lib/python-venv/hypnos/bin/activate | |
| - which pip | |
| - pip install adios #addios 1.9.0 only support python 2.*.* | |
| - pip install six | |
| - pip install matplotlib | |
| - pip install "ipython[all]" | |
| - pip install mpi4py | |
| - pip install h5py | |
| If a small matplotlib example not show the X-window a solution can be | |
| - `pip install PySide` | |
| - `vim ~/lib/hypnos2.7.10/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc` | |
| - change backkend to: `backend : Qt4Agg` | |
| - and set qt4 backend to PySide `backend.qt4 : PySide` | |
| - load module or install `qt4` | |
| - test matplotlib example (X-window should be shown) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment