[IPython-dev] Including javascript from static library

Satrajit Ghosh satra@mit....
Tue Jun 4 13:39:01 CDT 2013


> I would use the jQuery getScript function...
>

ah yes indeed. that would search all subdirectories of static paths.

cheers,

satra


>
> On Tue, Jun 4, 2013 at 11:28 AM, Satrajit Ghosh <satra@mit.edu> wrote:
> > if your js directory is in the same location as the notebook try:
> >
> > src="files/js/three.js"
> >
> > cheers,
> >
> > satra
> >
> > On Tue, Jun 4, 2013 at 2:26 PM, TARUN GABA <tarun.gaba7@gmail.com>
> wrote:
> >>
> >> Hi,
> >>
> >> Again for the same project, I have been working on,
> >> I need to include three.js and a few other javascript libraries for it
> to
> >> work.
> >> I am trying to include these js using ...
> >>
> >> HTML("'""<script src="full path to/three.js"></script>""")
> >>
> >> At the developers console of my browser I am getting a 503 (service
> >> unavailable error)
> >>
> >> I also tried using ..
> >>
> >> HTML("""<script src="js/three.js"></script>""")
> >>
> >> But got a 404( not found) at developer console.
> >>
> >> Any suggestions on how to efficiently include the js in ipython
> notebooks
> >>
> >> P.S. : I would prefer js files residing in my repo, rather than ipython
> >> configuration directory(alongwith custom.js)
> >>
> >> Thanks
> >>
> >>
> >> _______________________________________________
> >> 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
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/c65ddefc/attachment.html 


More information about the IPython-dev mailing list