On Thursday, March 24, 2016 at 2:48:36 PM UTC-5, Edward K. Ream wrote:

> The following...kinda works, when executed as a Leo script:

It is only necessary to add a createWindow method to make Jupyter's main 
page fully functional:

class JupyterWidget(QtWebKitWidgets.QWebView):

    def __init__(self):
        QtWebKitWidgets.QWebView.__init__(self)
        self.load(QtCore.QUrl(
            "http://localhost:8888/tree";))

    def createWindow(self, obj):
        return self

Wow, that was easy.  It should work regardless of the directory from which 
Jupyter is serving.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to