@@ -0,0 +1,1543 @@
+%22%22%22%0AMagics to have disqus conversation in the notebook.%0A%22%22%22%0A%0Afrom metakernel import Magic%0Afrom IPython.display import HTML%0A%0Aclass ConversationMagic(Magic):%0A%0A    def cell_conversation(self, id):%0A        %22%22%22%0A        %25conversation ID - insert conversation by ID%0A        %25%25conversation ID - insert conversation by ID%0A        %22%22%22%0A        html = %22%22%22%0A%3Cdiv id=%22disqus_thread%22%3E%3C/div%3E%0A%3Cscript%3E%0A(function() %7B // DON'T EDIT BELOW THIS LINE%0A    var d = document, s = d.createElement('script');%0A    s.src = '//%25s.disqus.com/embed.js';%0A    s.setAttribute('data-timestamp', +new Date());%0A    (d.head %7C%7C d.body).appendChild(s);%0A%7D)();%0A%3C/script%3E%0A%3Cnoscript%3EPlease enable JavaScript to view the %3Ca href=%22https://disqus.com/?ref_noscript%22%3Ecomments powered by Disqus.%3C/a%3E%3C/noscript%3E%0A%22%22%22 %25 id%0A        self.kernel.Display(HTML(html))%0A%0A    def line_conversation(self, id):%0A        %22%22%22%0A        %25conversation ID - insert conversation by ID%0A        %25%25conversation ID - insert conversation by ID%0A        %22%22%22%0A        self.cell_conversation(id)%0A        self.evaluate = False%0A%0Adef register_magics(kernel):%0A    kernel.register_magics(ConversationMagic)%0A%0Adef register_ipython_magics():%0A    from metakernel import IPythonKernel%0A    from IPython.core.magic import register_line_magic, register_cell_magic%0A    kernel = IPythonKernel()%0A    magic = ConversationMagic(kernel)%0A%0A    @register_line_magic%0A    def conversation(id):%0A        magic.line_conversation(id)%0A%0A    @register_cell_magic%0A    def conversation(id, cell):%0A        magic.code = cell%0A        magic.cell_conversation(id)%0A

Add %conversation magic