|
|
Re: IDL kernel for IPython/Jupyter Notebooks [message #89217 is a reply to message #89213] |
Tue, 05 August 2014 10:53   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 8/5/14, 3:30 AM, Luke Stagner wrote:
> Hello,
>
> In recent weeks, the IPython team has decided to split the IPython
> project into two separate projects. The language agnostic portions of
> IPython i.e. the console, qtconsole, and notebook will become Project
> Jupyter. The python specific parts of IPython will still be called
> IPython but will be a language kernel for Jupyter. Here is a link to
> the
> [announcement](https://www.youtube.com/watch?v=JDrhn0-r9Eg&t=4m10s).
>
> In preparation of this split, wrapper kernels were introduced into
> the current development version of IPython as an easy way to make
> language kernels. Using this new feature I made an IDL/GDL kernel.
>
> The kernel has basic functionality such as inline plots but there is
> room for improvement.
>
> I would appreciate testers since I did not have IDL available when I
> made the kernel.
>
> I would also appreciate contributors to help improve the kernel.
>
> I hope this will be a useful tool for the IDL community.
>
> Regards, Luke Stagner
>
>
> Source: https://github.com/lstagner/idl_kernel
>
> Demo Notebook:
> http://nbviewer.ipython.org/github/lstagner/idl_kernel/blob/ master/demo.ipynb
>
> Wrapper Kernels:
> http://ipython.org/ipython-doc/dev/development/wrapperkernel s.html
>
Awesome! I got this working with IDL 8.3 and using the current Anaconda
Python distribution. In addition to idl_kernel, I had to install:
IPython 3.0-dev (get from https://github.com/ipython/ipython)
pexpect 3.3 (download from https://pypi.python.org/pypi/pexpect)
jsonpointer (easy_install)
jsonschema (easy_install)
It is working for my basic examples. There are three small issues I see
so far:
1. There are a few error messages at the command line where I
launched IPython.
2. It prints debug type messages like
.run /var/folders/3l/5497218j7x99gbh9xdh8fn500000gp/T/tmppbCisE
in the notebook after I execute a command.
3. I see a red flash before inline graphics appear in the notebook.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
|
|
|
|
|
|
Re: IDL kernel for IPython/Jupyter Notebooks [message #89288 is a reply to message #89284] |
Thu, 14 August 2014 07:21  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 8/14/14, 3:54 am, Luke Stagner wrote:
> Thanks for the info. At the moment however I am trying to keep
> everything backwards compatible with the last version of IDL i.e. 7.0
> . When version 9.0 comes out I may use your solution.
>
> I think I may be able to solve the problem using pixmaps. Any
> suggestions on how to effectively do this would be welcome.
Very easy. Use "window, /pixmap" to create and tvrd to get contents of
window into an array that you could write into an image file.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
|
|
|