Created
April 15, 2018 16:59
-
-
Save thomasaarholt/4e150e9ebaad411e7a76d41dec81c8e4 to your computer and use it in GitHub Desktop.
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
--------------------------------------------------------------------------- | |
KeyError Traceback (most recent call last) | |
<ipython-input-1-bcff7cee2750> in <module>() | |
1 get_ipython().run_line_magic('matplotlib', 'notebook') | |
2 import hyperspy.api as hs | |
----> 3 hs.preferences.gui() | |
c:\users\me\documents\github\hyperspy\hyperspy\ui_registry.py in pg(self, display, toolkit, **kwargs) | |
172 def pg(self, display=True, toolkit=None, **kwargs): | |
173 return get_gui(self, toolkey=toolkey, display=display, | |
--> 174 toolkit=toolkit, **kwargs) | |
175 return pg | |
176 | |
c:\users\me\documents\github\hyperspy\hyperspy\ui_registry.py in get_gui(self, toolkey, display, toolkit, **kwargs) | |
152 if toolkit in toolkits: | |
153 used_toolkits.add(toolkit) | |
--> 154 thisw = f(obj=self, display=display, **kwargs) | |
155 if not display: | |
156 widgets[toolkit] = thisw | |
C:\ProgramData\Anaconda3\envs\py\lib\site-packages\hyperspy_gui_ipywidgets\utils.py in wrapper(*args, **kwargs) | |
69 def wrapper(*args, **kwargs): | |
70 display = kwargs.pop("display", True) | |
---> 71 wdict = f(*args, **kwargs) | |
72 if display: | |
73 IPython.display.display(wdict["widget"]) | |
C:\ProgramData\Anaconda3\envs\py\lib\site-packages\hyperspy_gui_ipywidgets\preferences.py in show_preferences_widget(obj, **kwargs) | |
63 for trait_name in getattr(obj, tab).editable_traits(): | |
64 trait = tabtraits[trait_name] | |
---> 65 widget = TRAITS2IPYWIDGETS[type(trait.trait_type)]( | |
66 trait, get_label(trait, trait_name)) | |
67 ipytab.append(widget) | |
KeyError: <class 'traits.trait_types.CStr'> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment