Sat Dec 29 12:29:33 CST 2012
Hi, glad to see you thinking about these issues, we are definitely
interested in them. There is actually a lot going on with this
> I'm new here and I wanted to run this by the group before I start working on
> it. I'm interested in building a facility to use the notebook to edit and
> there is a magic function and there is some sort of way to have python code
> cells, but I was envisioning something more like a standard codecell, but
> execution is handled by the browser rather than the kernel.
For security reasons, we are going to disable all user written
that basically gives the browser full shell access to that users
> Let's say you've loaded some data and run some computations in your python
> kernel and now you want to display results in the notebook using some
> in the browser you need a couple of things:
into the notebook server before it starts. Here is the PR that
This is still very much a work in progress, so we would love feedback.
> 1) ability to change a code cell language to javascipt in the notebook
> frontend. I saw that there is a language field in the notebook file format
> for CodeCell but it is always = python.
We don't want to allow notebooks that mix different languages at the
CodeCell level. It introduces too many complications. However, we do
how to handle that in a secure manner, so the work is stalled (in
addition to not having anyone that is pushing on it - maybe that will
be you ;) ).
This is possible, but again the security is the crux we have to solve.
> 3) http REST api that will return json representations of Python objects
> that exist in the kernel. (this may already exist, I don't really
> understand the kernel communication protocol yet).
This is already implemented in the PR that I link to above.
> There are probably some more things like the ability to add CSS, HTML, js
> and image resources to the server that it can then serve back to the client.
> I see that there's been a lot of discussion related to this in the plugins
> thread, but maybe there can also be a method for accessing resources from
> the network and then telling the notebook server to serve them from some
have a d3 example.
> I'd like to implement this and I had a couple of questions:
> 1) Does this fit in with your ideas for the notebook or is editing non
> python code in CodeCell outside of the vision?
Yes, we want the notebook to support other languages.
> 2) Should there be another Dropdown for the language of the CodeCell or
No, at this point we want each notebook to be tied to a kernel in a
single language. What this means is that as we add kernels in other
languages (this is already happening) we will add a UI for selecting
the language of the notebook upon creation. But this has to be done
at notebook creation time when the kernel is created. IOW, it won't
be possible to *change* the language of a notebook once it is started.
security. There was some talk of working with Mozilla on this, but
that has stalled for now.
For now, I would say that the best thing to do is to help us review
> IPython-dev mailing list
Brian E. Granger
Cal Poly State University, San Luis Obispo
email@example.com and firstname.lastname@example.org
More information about the IPython-dev