<span style='font-family:Verdana'><span style='font-size:12px'>I had a look at bower, IIUC it has a "one of each" restriction which<br />doen't seem reasonable to me (one app.js, one app.css etc).<br />Not sure it supports data files at all, I could be wrong.<br /><br />I plan to implement something based on zip import, since<br />it packages everyhting in one file, and the module provides<br />enough functionality out of the box to have a "virutal fs in a zip file"<br />model workable.<br /><br />I'd appreciate an update if you reach a conclusion that there's a better way.<br /><br />Cheers,<br />yoval<br /> <blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite"><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">From: MinRK</span></span></p><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">Sent: 03/23/13 09:52 PM</span></span></p><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">To: IPython developers list</span></span></p><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [IPython-dev] Packaging javascript views as a self-contained package</span></span></p> <div> <div class="gmail_quote">On Sat, Mar 23, 2013 at 12:45 PM, Matthias BUSSONNIER <span><<a target="_blank" href="mailto:bussonniermatthias@gmail.com">bussonniermatthias@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br />Le 23 mars 2013 à 13:46, yoval p. a écrit :<div><div class="h5"><br />> Hi,<br />><br />> I've been looking for a way to package views as single file<br />> the python,js and static assets of a "widget" for exhibitionist.<br />><br />> After doing some tests with the python `zipimport` module and it<br />> seems like it provide all the functionality I need, including accessing<br />> data files (html templates, js) stored within, so it look viable.<br />><br />> I've read some bits and pieces that suggest the IPython team<br />> has also given this some thought, I'd appreciate your opinion<br />> on this way of doing things, if you've considered it and perhaps<br />> found it lacking in some way.<br /> </div></div>I don't quite remember of what we said. We know that we don't want to reinvent the wheel,<br />and probably want a system that is able to deal with dependencies, both python and js/css.<br />Our server especially require that some files are installed in the profile dir for now, so I'm<br />not sure of how zipimport will work with js.<br /><br />I personally had a look at npm/bower/<a target="_blank" href="http://component.io">component.io</a><br /><br />I have a slight preference for <a target="_blank" href="http://component.io">component.io</a> and npm (even if in dev we use bower right now)<br />but didn't had a deep look at how it handles python files.</blockquote><div> </div><div>This is exactly the conversation we need to have when coming up with the widget APIs - installation of tools with both Python and javascript+css components is going to be tricky, and we need to have an official story for it.</div><div>We haven't worked it out yet, but after we build a few example widgets, we should have a better idea of how this should work.</div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br />--<br />Matthias<br /><br /><br />><br />> Thanks,<br />> yoval<br />><br />> <a target="_blank" href="https://github.com/Exhibitionist/Exhibitionist">https://github.com/Exhibitionist/Exhibitionist</a> _______________________________________________<br />> IPython-dev mailing list<br />> <a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br />> <a target="_blank" href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br /><br />_______________________________________________<br />IPython-dev mailing list<br /><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br /><a target="_blank" href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a></blockquote></div></div></blockquote><p style="margin:0px; padding:0px;" > </p></span></span>