D extensions to python, inline in an ipython/jupyter notebook

John Colvin via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Jun 30 11:20:19 PDT 2015


On Sunday, 14 June 2015 at 15:51:37 UTC, John Colvin wrote:
> Bare-bones at the moment, but hopefully of interest to some 
> people
>
> https://github.com/DlangScience/PydMagic
>
> This allows you to write D extensions to python, as inline 
> cells in an ipython/jupyter notebook.

v0.1.0 is released, with substantial improvements. This is more 
like a usable tool and less like a proof of concept now, although 
I would definitely say it is still alpha quality due to lack of 
testing.

Highlights:

Ditched distutils in favour of dub. This is easier for me to 
maintain and fits much better with the rest of the D ecosystem

As a result of the above, the %%pyd magic interface has changed, 
see the README.md or %%pyd? for info on the new system

Extended the @pdef!() UDA mechanism to work for not only 
functions, but pretty much everything else that pyd supports. You 
can now use it to automatically expose types, members, properties 
and more.

Many bugs fixed.


More information about the Digitalmars-d-announce mailing list