[Networkit] Exposing C++ Code to Python
christian.staudt at kit.edu
Wed Jan 20 16:47:08 CET 2016
> On 20 Jan 2016, at 16:36, Dominik Kiefer <ufdsn at student.kit.edu> wrote:
> I have a Class written and tested, I added code in the
> networkit/_NetworKit.pyx file, ran pip3 install -e . and it compiles.
> When starting (i)python I can not see the added class. What am I missing
The classes are not yet imported from the extension module into the networkit module namespace. Think about which module your class belongs in, then import it in the respective .py file with
from _NetworKit import MyClass
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the NetworKit