[IPython-dev] toggle cell input - changed in dev version?

Andrew Gibiansky andrew.gibiansky at gmail.com
Mon Mar 17 13:29:52 EDT 2014


My 2-cents:

While I understand the security issues, it's a major inconvenience in my personal work... In addition, it's a pretty heavy burden on any non-Python kernel implementors; IHaskell currently has absolutely no notion of magics (though directives are similar, maybe) but certainly no notion of cell magics (and none planned for the time being)... (I have a ton of things to do before implementing that, and haven't seen much use for cell magics, especially given that Haskell has QuasiQuotes which allow similar things).

It's be really nice if there were some way to disable this security feature.

Do you think this might be possible somehow?

-- Andrew



On March 17, 2014 at 10:14:27 AM, Brian Granger (ellisonbg at gmail.com) wrote:

As of 2.0, Markdown cells no longer support script tags. You will need 
to put this code into HTML/JavaScript output using %%html or 
%%javascript. This is a security issue - we will have more details on 
this as 2.0 is released. 

Cheers, 

Brian 

On Mon, Mar 17, 2014 at 7:01 AM, John Griffiths 
<j.davidgriffiths at gmail.com> wrote: 
> 
> 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 
> 



-- 
Brian E. Granger 
Cal Poly State University, San Luis Obispo 
bgranger at calpoly.edu and ellisonbg at gmail.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/20140317/d556523f/attachment.html>


More information about the IPython-dev mailing list