[IPython-dev] IDL/GDL kernel
lstagner at uci.edu
Wed Jul 30 21:32:13 EDT 2014
I am glad I am not the only one stumped by this.
I have done what you have suggested and I verified that it is producing
the .png files. If I were to hazard a guess I would say that
publish_display_data is not connecting to the notebook.
On 07/30/2014 05:41 PM, ipython-dev-request at scipy.org wrote:
> Message: 6
> Date: Wed, 30 Jul 2014 17:54:42 -0700
> From: Thomas Kluyver<takowl at gmail.com>
> Subject: Re: [IPython-dev] IDL/GDL kernel
> To: IPython developers list<ipython-dev at scipy.org>
> <CAOvn4qg=ez5eydhB1-e1koaJNEO1djSbyVwcKcaL1dXi4rg7vw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 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
>> >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...
More information about the IPython-dev