[IPython-dev] embedding js9 into a notebook

Gijs Molenaar gijsmolenaar at gmail.com
Fri Oct 2 08:08:52 EDT 2015


Thanks for the answers!

 I'm still trying to get my head around this, but I still don't fully
understand the advantage of having an extension. The only advantage I see
is that you can serve static files that you copied from outside the
webserver tree?

Also, I would say having a Python module is more intuitive as an API than
having magic functions installing files into your IPython configuration.
But that is maybe preference.

meanwhile I'm understanding my problems a bit better now. Basically
publish_display_data
pushes the javascript code to the browser where it is put into eval(). This
works for most javascript code, but not for fabricjs. I posted a question
about that on the fabric mailinglist:

https://groups.google.com/forum/#!topic/fabricjs/W09fEtKopkk



2015-10-01 15:37 GMT+02:00 Kiko <kikocorreoso at gmail.com>:

>
>
> 2015-10-01 15:16 GMT+02:00 Gijs Molenaar <gijsmolenaar at gmail.com>:
>
>> Hi Kiko,
>>
>> one needs to manually enable an extension to use them
>>
>
> Like a library ;-)
>
> There are libraries that have a notebook mode.
>
> See, for instance, the approach made by this library:
> https://github.com/quantopian/qgrid#how-it-works
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> https://mail.scipy.org/mailman/listinfo/ipython-dev
>
>


-- 
Gijs Molenaar
http://pythonic.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20151002/2ab538d5/attachment.html>


More information about the IPython-dev mailing list