找不到GUI模块

时间:2018-07-04 06:02:32

标签: user-interface jupyter-notebook simpleitk

我正在尝试运行以下代码:

# To use interactive plots (mouse clicks, zooming, panning) we use the nbagg back end. We want our graphs 
# to be embedded in the notebook, inline mode, this combination is  defined by the magic "%matplotlib notebook".
%matplotlib notebook

import SimpleITK as sitk

%run update_path_to_download_script
from downloaddata import fetch_data as fdata
import gui

# Using an external viewer (ITK-SNAP or 3D Slicer) we identified a visually appealing window-level setting
T1_WINDOW_LEVEL = (1050,500)

当我在Spider 3.2.6中运行它时,我得到: ModuleNotFoundError:没有名为“ gui”的模块

任何帮助将不胜感激。

代码源:http://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/Python_html/30_Segmentation_Region_Growing.html

1 个答案:

答案 0 :(得分:1)

这不是间谍问题。

gui modulenotebooks repository的一部分。克隆存储库或下载此文件。 downloaddata module也是如此。