<div dir="ltr"><div class="gmail_extra">Hi Luke,<br><br></div><div class="gmail_extra"><div class="gmail_quote">On 30 July 2014 17:29, Luke Stagner <span dir="ltr"><<a href="mailto:lstagner@uci.edu" target="_blank">lstagner@uci.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">I am a graduate student studying plasma physics. I have made a
    mostly functional IDL/GDL(just GDL for now) <a href="https://github.com/lstagner/idl_kernel" target="_blank">kernel</a> using the
    new wrapper kernel feature. I borrowed heavily from the <a href="https://github.com/takluyver/bash_kernel" target="_blank">bash_kernel</a>
    example. If it is not too much trouble I need some help with two
    things. <br></div></blockquote><div><br></div><div>Cool, I'm glad to hear that the API and the example are useful.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div bgcolor="#FFFFFF" text="#000000">
    
    1. IPython doesn't kill GDL process when shutting down or restarting
    the kernel. I have defined the <a href="https://github.com/lstagner/idl_kernel/blob/master/gdl_kernel.py#L130" target="_blank">do_shutdown</a>
    to kill the process but that doesn't seem to do anything. <br></div></blockquote><div><br></div><div>That's strange. I've just tried with my bash kernel, which doesn't implement do_shutdown at all, and it does stop the process correctly (the server stops the wrapper process, and that automatically causes the child process to die). I don't know exactly what could be interfering with that, but I'll keep thinking.<br>

</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    2. Inline Plots: My current <a href="https://github.com/lstagner/idl_kernel/blob/master/gdl_kernel.py#L91" target="_blank">method</a>
    is to have GDL make pngs of the plots and then publishing them.
    Unfortunately this is not working and I am not sure why.</div></blockquote></div><br></div><div class="gmail_extra">It should work. Looking at your code, you should switch back to the commented out line that opens and reads the image files, rather than displaying the filenames. If you comment out the rmtree(plot_dir) line, are the images being written as you expect?<br>

<br>Thomas<br></div></div>