Open Uday-Shankar-Shanthamallu opened 2 years ago
Same issue here, did you manage to solve it?
https://github.com/waleedka/hiddenlayer/blob/45243d51fd78cb6edc45cca50d29b04fb4b35511/hiddenlayer/graph.py#L359
replace this line with
return self.build_dot()._repr_image_svg_xml()
I am following the demo notebook for pytorch (version 1.9.1) and I get the following error:
AttributeError Traceback (most recent call last) ~/opt/anaconda3/envs/gexp/lib/python3.8/site-packages/IPython/core/formatters.py in call(self, obj) 343 method = get_real_method(obj, self.print_method) 344 if method is not None: --> 345 return method() 346 return None 347 else:
~/opt/anaconda3/envs/gexp/lib/python3.8/site-packages/hiddenlayer/graph.py in _reprsvg(self) 357 def _reprsvg(self): 358 """Allows Jupyter notebook to render the graph automatically.""" --> 359 return self.build_dot()._reprsvg() 360 361 def save(self, path, format="pdf"):
AttributeError: 'Digraph' object has no attribute '_reprsvg'