[Networkit] Exposing C++ Code to Python

Christian Staudt 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
> here?


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...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20160120/29b4d636/attachment.sig>


More information about the NetworKit mailing list