<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">El 08/08/13 13:28, Matthias Bussonnier
      escribió:<br>
    </div>
    <blockquote
      cite="mid:4C90697A-48D4-4836-AAD7-14496642D567@gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <div>Window is the global object. You can do window.ccell = ccell
        pretty much everywhere ccell in defined. Then you can just
        access ccell from te JavaScript console<br>
        <br>
        Envoyé de mon iPhone</div>
      <div><br>
        Le 8 août 2013 à 18:12, Damián Avila <<a
          moz-do-not-send="true" href="mailto:damianavila@gmail.com">damianavila@gmail.com</a>>
        a écrit :<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          <div class="moz-cite-prefix">El 08/08/13 03:26, Matthias
            BUSSONNIER escribió:<br>
          </div>
          <blockquote
            cite="mid:2591250C-DD48-4ED4-9CB6-083A8009B2FB@gmail.com"
            type="cite"><br>
            <div>
              <div>Le 8 août 2013 à 08:01, Damián Avila a écrit :</div>
              <br class="Apple-interchange-newline">
              <blockquote type="cite"><span class="Apple-style-span"
                  style="border-collapse: separate; font-family:
                  Helvetica; font-style: normal; font-variant: normal;
                  font-weight: normal; letter-spacing: normal;
                  line-height: normal; orphans: 2; text-align:
                  -webkit-auto; text-indent: 0px; text-transform: none;
                  white-space: normal; widows: 2; word-spacing: 0px;
                  -webkit-border-horizontal-spacing: 0px;
                  -webkit-border-vertical-spacing: 0px;
                  -webkit-text-decorations-in-effect: none;
                  -webkit-text-size-adjust: auto;
                  -webkit-text-stroke-width: 0px; font-size: medium; ">In
                  this way, I get the a copy of the cell but it is not
                  executable…</span></blockquote>
              <br>
            </div>
            <div><br>
            </div>
            <div>Yes it is, Shift-Enter is just not bound to it. </div>
            <div>Shift-Enter is handled by IPython.notebook and is bound
              to execute selected cell</div>
            <div><br>
            </div>
            <div>As notebook object does nt know of your cell, you are
              just sending the execute request to the wrong cell.</div>
            <div><br>
            </div>
            <div>adding this : </div>
            <div><br>
            </div>
            <div>window.ccell = cell;</div>
            <div><br>
            </div>
            <div>and then ccell.execute() in JSconsole works.</div>
            <div><br>
            </div>
            <div>-- </div>
            <div>M</div>
            <br>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
IPython-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a>
</pre>
          </blockquote>
          <br>
          I do not understand what `window.ccell = cell;` is doing... so
          I do not know where to add it... ;-)<br>
          <br>
          Damián. <br>
          <br>
          <br>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>_______________________________________________</span><br>
          <span>IPython-dev mailing list</span><br>
          <span><a moz-do-not-send="true"
              href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a></span><br>
          <span><a moz-do-not-send="true"
              href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a></span><br>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
IPython-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a>
<a class="moz-txt-link-freetext" href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a>
</pre>
    </blockquote>
    <br>
    Ah... window.ccell = ccell not window.ccell = cell ;-) <br>
    I did not understand it because the missing "c"... sorry, I would
    have to have noticed...<br>
    <br>
    Thanks.<br>
    <br>
    Damián.<br>
    <br>
  </body>
</html>