How does RedisGears interpreter work?

I was reading thru code examples for RedisGears and noticed for certain examples libraries like pandas or numpy we’re used in them.

This lead me to wonder, how does the interpreter work? Does it pull the used libraries in the currently run interpreter to know which libraries to use? How did you get numpy and pandas into it? What’s the average process to load libraries into the system? Maybe other serializers?

On the RG.PYEXECUTE command you can specify REQUIREMENTS ( RedisGears installs those requirements before running the python code (so you can give numpy as a requirement and RedisGears will install it). If you try to import a library which was not specify as a requirement and was not installed, you will get a runtime error.

1 Like