LoginSignup
10
10

More than 5 years have passed since last update.

Jupyter notebookでMayaviを使う時の設定

Last updated at Posted at 2017-02-19

環境
Windows10
conda 4.3.11
python3.4.4

https://anaconda.org/menpo/mayavi
に従って、mayaviをインストールする。

$ conda install -c menpo mayavi=4.5.0

http://docs.enthought.com/mayavi/mayavi/tips.html
に従って、jupyterを設定する。

$ jupyter nbextension install --py mayavi --user

さっそく3D図を書いてみる。
これだと、ウインドウは開くが、絵は表示されない。

from mayavi import mlab
s = mlab.test_plot3d()
s

これだと、別ウインドウに絵が出せる。

from mayavi import mlab
%gui qt
s = mlab.test_plot3d()
s

image

これだと、notebook上に絵が出せる。

from mayavi import mlab
mlab.init_notebook()
s = mlab.test_plot3d()

image

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10