<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Gabriel,<br>
    <br>
    Ngl.end() terminates all. See
    <a class="moz-txt-link-freetext" href="http://www.pyngl.ucar.edu/Functions/Ngl.end.shtml">http://www.pyngl.ucar.edu/Functions/Ngl.end.shtml</a>:<br>
    <p>
      <font color="#3333ff"><tt>This function terminates a PyNGL script.
          It flushes all buffers and
          closes all internal and graphical (PS, PDF, and NCGM) files.
          This
          function should only be called once within a PyNGL script,
          right
          before you exit. </tt></font><br>
    </p>
    <p>If you want just to close the wks you can use the <b>Ngl.delete_wks</b>
      function, see
      <a class="moz-txt-link-freetext" href="http://www.pyngl.ucar.edu/Functions/Ngl.delete_wks.shtml">http://www.pyngl.ucar.edu/Functions/Ngl.delete_wks.shtml</a>. <br>
      Afterwards you can define a new wks and use it in the same
      notebook.<br>
    </p>
    <p>By the way, you send this request to the wrong mailing list.
      Here, we answer NCL questions. Send PyNGL requests to pyngl-talk,
      see<br>
      <a class="moz-txt-link-freetext" href="http://www.pyngl.ucar.edu/User_forum/">http://www.pyngl.ucar.edu/User_forum/</a></p>
    <p>-Karin<br>
    </p>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 08.10.19 um 03:04 schrieb Gabriel
      Abrahão via ncl-talk:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFc8h25kCKuwDRM_zLjT=TW5bqBzAsL4mUCoVJTVNric7v+fBQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hello all,</div>
        <div><br>
        </div>
        <div>I generally use python on a jupyter notebook in Atom. In
          that context, it would be useful to rerun just the plotting
          part of a script when iterating with resources and such.
          However, after calling Ngl.end() something is flushed/closed
          and you can't open a workspace again. <br>
        </div>
        <div><br>
        </div>
        <div>Is there something one can do after Ngl.end() to make the
          Ngl stuff work again, short of restarting the
          kernel/interpreter and losing everything else the script did?
          <br>
        </div>
        <div><br>
        </div>
        <div>Thank you,<br clear="all">
        </div>
        <div><br>
          -- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr"><span>Gabriel Medeiros Abrahão
                <div>Grupo de Pesquisas em Interação Atmosfera-Biosfera
                  - DEA/UFV</div>
              </span></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></pre>
    </blockquote>
    <br>
  </body>
</html>