WolframResearch / WolframClientForPython

Call Wolfram Language functions from Python
https://wolfr.am/wolframclientdoc
MIT License
446 stars 47 forks source link

Is it possible to avoid writing FullForm? #21

Closed asukaminato0721 closed 4 years ago

asukaminato0721 commented 4 years ago

If I want to reverse the color of a picture in mma, I would

1-pic

But to the same thing with this, I have to write.

session.evaluate ( wl.Plus (1, wl.Times (-1, pic)))

So long. Any shortcuts?

asukaminato0721 commented 4 years ago

I find a shorter way.

f = session.evaluate(wlexpr('1-#&'))
session.evaluate(f(pic))

Also works.