[IPython-dev] IDL/GDL kernel

Thomas Kluyver takowl at gmail.com
Wed Jul 30 20:54:42 EDT 2014

Hi Luke,

On 30 July 2014 17:29, Luke Stagner <lstagner at uci.edu> wrote:

> I am a graduate student studying plasma physics. I have made a mostly
> functional IDL/GDL(just GDL for now) kernel
> <https://github.com/lstagner/idl_kernel> using the new wrapper kernel
> feature. I borrowed heavily from the bash_kernel
> <https://github.com/takluyver/bash_kernel> example. If it is not too much
> trouble I need some help with two things.

Cool, I'm glad to hear that the API and the example are useful.

>  1. IPython doesn't kill GDL process when shutting down or restarting the
> kernel. I have defined the do_shutdown
> <https://github.com/lstagner/idl_kernel/blob/master/gdl_kernel.py#L130>
> to kill the process but that doesn't seem to do anything.

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.

> 2. Inline Plots: My current method
> <https://github.com/lstagner/idl_kernel/blob/master/gdl_kernel.py#L91> is
> to have GDL make pngs of the plots and then publishing them. Unfortunately
> this is not working and I am not sure why.

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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140730/0ed4b32f/attachment.html>

More information about the IPython-dev mailing list