Inkscape.org
Creating New Extensions a comprehensive tutorial of how to use a python libraries that isn't on the inkscape default python lib's
  1. #1
    אסף צ'רטקוף אסף צ'רטקוף @asafchertkoff

    Hi.
    i'm working on a pack of extensions, and i really need to implement matplotlib python lib, in a way that the general user could reproduce afterwards, with the least technical knowledge. 
    regardless that i think that a plotting library as rich as matplotlib should be implemented in inkscape's extension's python core, IS there any documentation on the most clean and fast way of doing it? 
    please help 

    Cheers.
     

  2. #2
    inklinea inklinea @inklinea⛰️

    This is a bit complicated. 

    I have installed other packages from pypy by downloading the archive file, extracting to a subfolder in the extension, then adding to the sys path in python.

    I then add any dependencies which popup as error in Inkscape in the same way. The whole extension can then be zipped and distributed and works. 

    However I do not think this approach will work for the matplotlib library, it has many dependencies etc.

    I would ask in https://chat.inkscape.org/channel/inkscape_extensions

Inkscape Inkscape.org Inkscape Forum Creating New Extensions a comprehensive tutorial of how to use a python libraries that isn't on the inkscape default python lib's