[IPython-dev] Packaging javascript views as a self-contained package

Brian Granger ellisonbg@gmail....
Sat Mar 23 15:17:51 CDT 2013


I think right now I am leaning towards bower.  Whiel it is node.js
based, it would be very simple to create a bower client in
python...but we are going to have to get further along in the design
process.

Cheers,

Brian

On Sat, Mar 23, 2013 at 12:52 PM, MinRK <benjaminrk@gmail.com> wrote:
>
>
> On Sat, Mar 23, 2013 at 12:45 PM, Matthias BUSSONNIER
> <bussonniermatthias@gmail.com> wrote:
>>
>>
>> Le 23 mars 2013 à 13:46, yoval p. a écrit :
>>
>> > Hi,
>> >
>> > I've been looking for a way to package views as single file
>> > the python,js and static assets of a "widget" for exhibitionist.
>> >
>> > After doing some tests with the python `zipimport` module and it
>> > seems like it provide all the functionality I need, including accessing
>> > data files (html templates, js) stored within, so it look viable.
>> >
>> > I've read some bits and pieces that suggest the IPython team
>> > has also given this some thought, I'd appreciate your opinion
>> > on this way of doing things, if you've considered it and perhaps
>> > found it lacking in some way.
>>
>> I don't quite remember of what we said. We know that we don't want to
>> reinvent the wheel,
>> and probably want a system that is able to deal with dependencies, both
>> python and js/css.
>> Our server especially require that some files are installed in the profile
>> dir for now, so I'm
>> not sure of how zipimport will work with js.
>>
>> I personally had a look at npm/bower/component.io
>>
>> I have a slight preference for component.io and npm (even if in dev we use
>> bower right now)
>> but didn't had a deep look at how it handles python files.
>
>
> 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.
> 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.
>
>
>>
>>
>> --
>> Matthias
>>
>>
>> >
>> > Thanks,
>> > yoval
>> >
>> > https://github.com/Exhibitionist/Exhibitionist
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev@scipy.org
>> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com


More information about the IPython-dev mailing list