[IPython-dev] Embryo of Fortran magic based on f2py

Trémouilles David david.trem@gmail....
Thu Dec 13 04:22:17 CST 2012


I pushed an updated version that does not use "exec_command"
and that should work on windows...

May you give it a try ?

Regards,

David

Le 11/12/12 13:16, klo uo a écrit :
> Thanks for working on this.
> On Windows it won't run:
>
> ========================================
> Could not locate executable C:Python27pythonw.exe
> Executable C:Python27pythonw.exe does not exist
> ========================================
>
> Obvious issue with backslash at some point
>
> Is distutil.exec_command only way to do this?
> On Windows it will look "ugly" as it pops command line window on 
> command execution
>
>
> On Tue, Dec 11, 2012 at 10:53 AM, Trémouilles David 
> <david.trem@gmail.com <mailto:david.trem@gmail.com>> wrote:
>
>     Hi,
>
>     Finally, thanks to Thomas entry point, I gave a try at implementing
>     some Fortran cell magic based on f2py. This is cell_magic only with
>     almost no argument available. But this is fully functional :-)
>
>     I've asked for a pull request available here:
>     https://github.com/ipython/ipython/pull/2674
>
>     A demo notebook is available here:
>     http://nbviewer.ipython.org/4257286/
>
>     Comments, suggestions and feature requests are very welcome :-)
>
>     Regards,
>
>     David
>
>     Le 07/12/12 14:15, Thomas Kluyver a écrit :
>>     On 7 December 2012 12:49, David Tremouilles <david.trem@gmail.com
>>     <mailto:david.trem@gmail.com>> wrote:
>>
>>         I'm wondering if there is any %%fortran magic available out
>>         there ?
>>         Does anybody tried to implement this ?
>>
>>
>>     I don't think anyone's done it yet. If you want to have a go, a
>>     good starting point would be the %%cython magic we ship as an
>>     extension:
>>     https://github.com/ipython/ipython/blob/master/IPython/extensions/cythonmagic.py
>>
>>     Best wishes,
>>     Thomas
>>
>>
>>     _______________________________________________
>>     IPython-User mailing list
>>     IPython-User@scipy.org  <mailto:IPython-User@scipy.org>
>>     http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
>     _______________________________________________
>     IPython-dev mailing list
>     IPython-dev@scipy.org <mailto:IPython-dev@scipy.org>
>     http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20121213/d725f3db/attachment.html 


More information about the IPython-dev mailing list