From f81267a635054cf3137052855fc3ced0f8befe49 Mon Sep 17 00:00:00 2001
From: Anton Akhmerov <anton.akhmerov@gmail.com>
Date: Fri, 19 May 2017 12:01:36 +0200
Subject: [PATCH] fix typo in IPython magic function name

---
 kwant/continuum/discretizer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kwant/continuum/discretizer.py b/kwant/continuum/discretizer.py
index 1d830400..7eba3855 100644
--- a/kwant/continuum/discretizer.py
+++ b/kwant/continuum/discretizer.py
@@ -74,8 +74,8 @@ class _DiscretizedBuilder(builder.Builder):
 
         return "".join(result)
 
-    # For the Jupyter notebook:
-    def __repr_html__(self):
+    # Enable human-readable rendering in Jupyter notebooks:
+    def _repr_html_(self):
         return self.__str__()
 
 
-- 
GitLab