diff --git a/graphviz/files.py b/graphviz/files.py
index <HASH>..<HASH> 100644
--- a/graphviz/files.py
+++ b/graphviz/files.py
@@ -286,3 +286,6 @@ class Source(File):
     def __init__(self, source, filename=None, directory=None, format=None, engine=None, encoding=None):
         super(Source, self).__init__(filename, directory, format, engine, encoding)
         self.source = source
+
+    def _repr_svg_(self):
+        return self.pipe(format='svg').decode(self._encoding)
adding _repr_svg_ to Source