Closed scarf005 closed 2 years ago
Hi @scarf005,
Thank you for reporting this. Could you please do something like below instead to maintain backward compatibility?
try:
try:
# noinspection PyProtectedMember
return str(self.graphviz()._repr_svg_())
except AttributeError:
# noinspection PyProtectedMember
return self.graphviz()._repr_image_svg_xml()
except (SubprocessError, ExecutableNotFound, FileNotFoundError):
return self.svg()
thank you for letting me check for backward compatibility. fixed to code above.
@joowani Can you release the PR to PyPI?
replaces Diagraph's _repr_svg() method (deprecated) into _repr_image_svg_xml()