nglview run error
sekhwal opened this issue · comments
I am trying to run nglview with the following command "import nglview as nv" but it show an error.
error::::
AttributeError Traceback (most recent call last)
/tmp/ipykernel_8977/1899191847.py in <cell line: 1>()
----> 1 import nglview as nv
~/anaconda3/lib/python3.9/site-packages/nglview/init.py in
2
3 # for doc
----> 4 from . import adaptor, datafiles, show, widget
5 from ._version import get_versions
6 from .adaptor import *
~/anaconda3/lib/python3.9/site-packages/nglview/show.py in
11 RdkitStructure,
12 TextStructure)
---> 13 from .widget import NGLWidget
14
15 all = [
~/anaconda3/lib/python3.9/site-packages/nglview/widget.py in
17 import traitlets
18
---> 19 from . import color, interpolate
20 from .adaptor import Structure, Trajectory
21 from .component import ComponentViewer
~/anaconda3/lib/python3.9/site-packages/nglview/color.py in
112
113
--> 114 ColormakerRegistry = _ColormakerRegistry()
~/anaconda3/lib/python3.9/site-packages/nglview/base.py in getinstance()
8 def getinstance():
9 if cls not in instances:
---> 10 instances[cls] = cls()
11 return instances[cls]
12 return getinstance
~/anaconda3/lib/python3.9/site-packages/nglview/color.py in init(self, *args, **kwargs)
45 try:
46 get_ipython() # only display in notebook
---> 47 self.ipython_display()
48 except NameError:
49 pass
~/anaconda3/lib/python3.9/site-packages/nglview/color.py in ipython_display(self, **kwargs)
52 if self._ready:
53 return
---> 54 super().ipython_display(**kwargs)
55
56 def repr(self):
AttributeError: 'super' object has no attribute 'ipython_display'