On Thu, Mar 24, 2016 at 3:32 PM, Edward K. Ream <[email protected]> wrote:

> 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.
>

There are two big problems with this approach. The embedded browser is
glacially slow and way to big to fit comfortably inside Leo.

The solution to both problems is to switch back and forth between a real
browser and Leo. This is just Alt-Tab (Ctrl-Tab on the Mac, iirc). It
should be easy to tightly integrate Leo with an external browser, if we
haven't done so already...

EKR

-- 
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