[IPython-dev] Dockable widgets for IPython

Nicholas Bollweg nick.bollweg at gmail.com
Thu Jan 29 13:32:03 EST 2015


this looks very cool: as the "ipython is not a platform" party line
softens, ideas like this are important for pushing what "interactive
computing" can be like. My immediate concern would be in not knowing which
cell a particular widget came from. Additionally, from a purely stylistic
sense, try using bootstrap panels and fontawesome to make it flow more
seamlessly with the notebook UI.

I think several folks have been looking for this in the past, especially
with creating such controls at notebook load time:

I'd say near-term, see if you can repackage this into an nbextension that
someone can optionally add at profile config/run-time. If it can be made
into pure javascript that stores its data in the notebook/cell metadata,
that lowers the barrier to entry... and makes it more feasible to use with
other kernels.

Otherwise, if you need the python part, there is the approach taken by
cite2c <https://github.com/takluyver/cite2c>. Specifically, allowing the
configuration of the web app (not the kernel) to include loading custom
extensions <https://github.com/takluyver/cite2c/blob/master/install.py#L11>.

i have been interested in alternate editable layouts for some time: of them
i think live_reveal <https://github.com/damianavila/live_reveal>, while
still a little fiddly to install, has the most potential for becoming
something that would make sense to ship with the notebook experience,
especially as it is cell-based, (really) front-end only and its metadata is
already integrated into nvconvert and (soon, hopefully!) nbviewer. If your
widgets could survive nbviewer (either with or without help from a custom
converter) that would be really cool... once static widgets are supported.

i have a bit of python widget code that will populate widgets on top of SVG
regions (as defined by layers in inkscape): this makes it easy to build up
full-screen capable dashboards without requiring a lot of CSS/JS knowledge.

          children={"chart": SomeChartWidget()})

i want to refactor it into pure javascript as well.

keep the list posted!

On Thu, Jan 29, 2015 at 11:57 AM, cedric gestes <ctaf42 at gmail.com> wrote:

> I hacked a prototype of dockable widgets using DockSpawn.
> see
> http://www.hostingpics.net/viewer.php?id=990121201501291741191600x900scrot.png
> for a screenshot.
> Before going further I would like to take your advice on the subject.
> Is that something wanted in IPython?
> We can imagine having cells and widgets in docks.
> The prototype is hackish and just a proof of concept.
> You can find it github on the branch dockspawn of:
> github.com/ctaf42/ipython and github.com/ctaf42/ipython-components
> just checkout, run IPython and open a notebook like this one:
> http://nbviewer.ipython.org/gist/ctaf42/e029c475b08bdfe43f6a
> Cedric
> --
> View this message in context:
> http://python.6.x6.nabble.com/Dockable-widgets-for-IPython-tp5084622.html
> Sent from the IPython - Development mailing list archive at Nabble.com.
> _______________________________________________
> 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/20150129/517fdb2d/attachment.html>

More information about the IPython-dev mailing list