[IPython-dev] toggle cell input - changed in dev version?
John Griffiths
j.davidgriffiths at gmail.com
Mon Mar 17 15:04:49 EDT 2014
Thanks everyone for the informative discussion.
Running the script with %%HTML is working fine.
Juergen - thanks for adding the extension. Perhaps better to call it
something like 'hide_input_all.js' though - so it's clearer that it's doing
the same thing as 'hide_input.js'. Or, even better, have a single
extension that adds buttons for both. Apologies I'm not ofay enough with
javascript to do that myself. In any case its useful to have a functional
snippet to hand in addition to the toolbar extensions, as tend to move
between systems quite a lot.
Ta,
john
On 17 March 2014 18:33, Juergen Hasch <python at elbonia.de> wrote:
>
> You can easily make a notebook extension out of this. Take a look at:
>
> https://github.com/ipython-contrib/IPython-notebook-extensions/blob/master/usability/toggle_codecells.js
>
>
> Am 17.03.2014 15:01, schrieb John Griffiths:
> >
> > I've been making use of a little piece of javascript in a markdown cell
> that hides all code cells in the notebook;
> >
> > <script type="text/javascript">
> > show=true;
> > function toggle(){
> > if (show){
> > $('div.input').hide();
> > }else{
> > $('div.input').show();
> > }
> > show = !show
> > }
> > </script>
> > <a href="javascript:toggle()" target="_self">toggle input</a>
> >
> > (e.g. see here
> http://python.6.x6.nabble.com/IPython-User-Hide-code-cells-in-the-notebook-td4997151.html)
> >
> >
> > However, I recently installed the latest ipython dev version, and now
> this snippet doesn't seem to be working any more.
> >
> > Any obvious reasons for this?
> >
> > Ta,
> >
> > john
> >
> >
> >
> >
> > --
> >
> > Mr. John Griffiths, MSc
> >
> > PhD Candidate
> >
> > Centre for Speech, Language, and the Brain____
> >
> > Department of Experimental Psychology
> >
> > University of Cambridge, UK
> >
> >
> >
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
--
Mr. John Griffiths, MSc
PhD Candidate
Centre for Speech, Language, and the Brain
Department of Experimental Psychology
University of Cambridge, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140317/68aa8b60/attachment.html>
More information about the IPython-dev
mailing list