[IPython-dev] How can an extension add Notebook URL handlers?

MinRK benjaminrk at gmail.com
Thu May 23 18:41:31 EDT 2013


Extensions do not have that level of access - you would need to subclass
the application, extend it, and add your own entry point.
Unless we add a notion of notebook server plugins, adding handlers won't be
possible without subclassing.


On Thu, May 23, 2013 at 3:33 PM, David Wolever <david at wolever.net> wrote:

> Hey,
> I'd like to turn BrowserCast into a "real" extension… but to do that, I
> need to extend NotebookWebApplication's list of URL handlers to include a
> handler which will serve the relevant static files (ex, a handler so that
> requests for "/browsercast/static/(.*)" will be served from
> "…/site-packages/ipython_browsercast/static/").
>
> How can I do that?
>
> Thanks,
> David
>
> --
> phone: (416) 906-0403
> pgp: B230230D
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130523/1ba8ec54/attachment.html>


More information about the IPython-dev mailing list