从Christoph Gohlke的Python安装Mayavi后,为Windows网站构建时,以下从普通的互动python提示了:
import mayavi.mlab as MM
MM.test_surf()
但是,当我在jupyter-qtconsole
下运行相同的速度时,窗口升起并挂起。
供参考,我有以下包裹,以从上面的网站上安装在给定的订单中,通过新鲜的Python 2.7.13安装。
(这些只是与Jupyter,Scipy,Matplotlib,Mayavi和几个有用的额外功能获得工作环境的依赖关系。)
- numpy-1.11.1 mkl-cp27-cp27m-win32.whl
- MS vs 2008重新分配(来自MS网站)
- pygments-2.1.3 py2.py3-none-any.whl
- 特质-4.6.0-CP27-CP27M-WIN32.WHL
- pyqt4-4.11.4-cp27-none-win32.whl
- VTK-5.10.1 QT486-CP27-NONE-WIN32.WHL
- Mayavi-4.3.1 VTK510-CP27-NONE-WIN32.WHL
- pyzmq-15.4.0-cp27-cp27m-win32.whl
- CERTIFI-2016.8.8-PY2.PY3-NONE-NONE.WHL
- backports.ssl_match_hostname-3.5.0.1-py2-none-any.whl
- 龙卷风-4.4.4.1-cp27-cp27m-win32.whl
- MarkupSafe-0.23-CP27-NONE-WIN32.WHL
- jinja2-2-2.8-py2.py3-none-any.whl
- MISTUNE-0.7.3-CP27-CP27M-WIN32.WHL
- pytz-2016.6.1-py2.py2.py3-none-any.whl
- pyparsing-2.1.8-py2.py3-none-any.whl
- Cycler-0.10.0-py2.py2.py3-nony-any.whl
- 枕头-3.3.1-CP27-CP27M-WIN32.WHL
- wxpython_common-3.0.2.0.2.0-py2-none-any.whl
- wxpython-3.0.2.0.2.0-cp27-none-win32.whl
- python_dateutil-2.5.3-py2.py3-none-any.whl
- pyside-1.2.2-cp27-none-win32.whl
- matplotlib-2.0.0.0b3-cp27-cp27m-win32.whl
- scandir-1.5-cp27-cp27m-win32.whl
- ipython-5.1.0-py2.py2.py3-none-any.whl
- ipykernel-4.4.4.1-py2.py3-none-any.whl
- ipyparallel-5.2.0-py2.py3-none-any.whl
- ipywidgets-5.2.2-py2.py3-none-any.whl
- jupyter-1.0.0-py2.py3-none-any.whl
- Scipy-0.18.0-CP27-CP27M-WIN32.WHL
- 瓶颈1.1.0-CP27-CP27M-WIN32.WHL
- numexpr-2.6.1-cp27-cp27m-win32.whl
- pandas-0.18.1-cp27-cp27m-win32.whl
- sympy-1.0-py2.py3-none-any.whl
我在此线程中找到了一个解决方案。这是从jupyter qtconsole内部使用的:
import mayavi.mlab as MM
%gui qt
MM.test_surf()
请注意,必须在后发出%gui qt
命令 MAYAVI。
(解释是"初始化QT事件循环支持",这对我来说不是很有意义。)