4 ms·
How about the other way around, e.g. importing stuff like NumPy and SciPy or PyTorch from Nim? Is that possible?
by amelius 7y ago
How about the other way around, e.g. importing stuff like NumPy and SciPy or PyTorch from Nim? Is that possible?
- mlinksva 7y agoHaven't tried but https://github.com/yglukhov/nimpy#calling-python-from-nim https://github.com/yglukhov/nimpy#calling-python-from-nim
- beagle3 7y agoYes, using nimpy (which nimporter builds on); IIRC, it has other nice features like being Python version agnostic (same Nim executable can import modules from py2.7, py3.4 and py3.7 for example without needing to recompile, though not at the same time). But you might be better off with NimTorch and Arraymancer which though not yet complete, provide similar functionality and ergonomics at superior performance.